BOINC Client application ‘Hello, BOINC World!’

BOINC Client application ‘Hello, BOINC World!’
[code lang=”cpp”]
#ifdef _WIN32
#include “boinc_win.h”
#endif #include “boinc_api.h”
#include “filesys.h”
#include “util.h”int main(int argc, char **argv) {
char resolved_name[512];
FILE* f;
boinc_init();
boinc_resolve_filename(“out”, resolved_name, sizeof(resolved_name));
f = boinc_fopen(resolved_name, “w”);
fprintf(f, “Hello, BOINC World!\n”);
fclose(f);
boinc_finish(0);
return 47;
} [/code]

Leave a Reply