are.ehibou.com

February 17, 2006

BOINC Client application ‘Hello, BOINC World!’

Filed under: BOINC — admin @ 1:43 pm
BOINC Client application ‘Hello, BOINC World!’
#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;
}
  • Share/Bookmark

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress