From 4649e4906db6f894568f793fd2d0e4fb0970c81d Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Thu, 20 Jun 2002 23:35:44 +0000 Subject: [PATCH] Implemented BOINC soft link support in test applications. svn path=/trunk/boinc/; revision=118 --- apps/concat.C | 14 ++++++++++++-- apps/upper_case.C | 6 ++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/concat.C b/apps/concat.C index 88bf380f45..484472c94d 100644 --- a/apps/concat.C +++ b/apps/concat.C @@ -22,6 +22,8 @@ // concatenate files, write to outfile #include +#include +#include "api.h" void file_append(FILE* in, FILE* out) { char buf[1024]; @@ -36,19 +38,26 @@ void file_append(FILE* in, FILE* out) { int main(int argc, char** argv) { FILE* in, *out; + char file_name[512]; int i; + APP_IN ai; + boinc_init(ai); fprintf(stderr, "APP: concat: starting, argc %d\n", argc); for (i=0; i #include +#include +#include "api.h" int main() { int c, n=0; + APP_IN ai; + + boinc_init(ai); fprintf(stderr, "APP: upper_case starting\n"); fflush(stderr); while (1) { @@ -34,4 +39,5 @@ int main() { n++; } fprintf(stderr, "APP: upper_case ending, wrote %d chars\n", n); + return 0; }