Initial commit

This commit is contained in:
2021-10-01 20:24:05 +02:00
commit 860c025165
194 changed files with 4846 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <stdio.h>
#include <unistd.h>
#define FIFONAM "/tmp/testfifo"
int main(void)
{
FILE *fp;
signed char c;
if ( access(FIFONAM, R_OK) != 0 )
{
fprintf(stderr, "Problem att öppna %s\n", FIFONAM);
return 1;
}
fp = fopen(FIFONAM, "r");
while ((c = getc(fp)) != EOF)
putchar(c);
fclose(fp);
return 0;
}