Displaying 1 result from an estimated 1 matches for "check_cid".
Did you mean:
check_cfc
2008 Jan 27
1
[AGI 1.4] C sample?
..., but I have to use
this language to write a couple of AGI proggies because I need them to
be statically compiled.
Strangely enough, Google didn't return much when looking for the
"Hello, world!" of AGI in C.
The following doesn't work: The file never gets written:
===========
//check_cid.c
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <string.h>
int main(int argc, char *argv[])
{
char line[80];
int i;
setlinebuf(stdout);
setlinebuf(stderr);
FILE *file;
file = fopen("file.txt","a+");
while (1)...