Code: Select all
#define TEST_VAR "test"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
int initialize(void) {
printf("\nThis %s was a success.\n",TEST_VAR);
return 0;
}
int main(int argc, char ** argv) {
if (initialize()) {
printf("\nmain: FATAL: initialization failed\n");
return -1;
}
printf("\n");
return 0;
}
Anyway, can anyone point me to some good tutorials, docs, and other such things that I can use to learn C? I mostly will be dealing with creating prorams for use in linux, although if you could link me to some docs that show how to make your programs cross platform that would be awsome, specifically dos, windows, and linux are my target platforms so libraries that work with all 3 would be usefull.