ciabatta/test/inctoarg.c

24 lines
426 B
C
Raw Normal View History

2022-06-02 13:08:59 +00:00
#include<stdio.h>
#include<stdlib.h>
int main()
{
char *include = getenv("INCLUDE");
printf(" ");
while(*include != 0) {
printf("-I \"");
while(*include != ';' && *include != 0) {
2022-06-02 19:55:10 +00:00
if (*include == '\\') {
printf("/");
} else {
printf("%c", *include);
}
*include++;
2022-06-02 13:08:59 +00:00
}
if(*include == ';') {
++include;
}
printf("\" ");
}
}