snippets/c/cecho.c
Ali Furkan Yıldız 0217a82f4c add newline
2023-01-12 00:25:50 +03:00

15 lines
311 B
C

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
for (int i = 1; i < argc; i++) {
printf("\033[%dm%s", i % 2, argv[i]);
if (i != argc - 1)
putchar(' ');
}
putchar('\n');
}
// Compilation: cc unlink.c -o unlink
// Usage: ./unlink FILES ...
// License: Public Domain