Diff for /dietlibc/t.c between versions 1.56 and 1.57

version 1.56, 2001/05/10 11:48:30 version 1.57, 2001/05/10 13:08:16
Line 48  static int rand() { Line 48  static int rand() {
   
 extern double atof(const char *c);  extern double atof(const char *c);
   
   FILE* logfile;
   
   void vlog_message(const char * s, va_list args) {
           fprintf(logfile, "* ");
           vfprintf(logfile, s, args);
           fprintf(logfile, "\n");
           fflush(logfile);
   }
   
   
   void log_message(const char * s, ...) {
           va_list args;
           va_start(args, s);
           vlog_message(s, args);
           va_end(args);
           return;
   }
   
 int main(int argc,char *argv[]) {  int main(int argc,char *argv[]) {
     char * p = "plop";
     int i = 3;
   
     logfile = fopen("test-out", "w");
   
     log_message("Hi");
     log_message("the number is %d and the string %s", i, p);
   
   #if 0
   struct msgbuf bla;    struct msgbuf bla;
   bla.mtype=0;    bla.mtype=0;
   bla.mtext[0]='x';    bla.mtext[0]='x';
   msgsnd(327680,&bla,5,IPC_NOWAIT);    msgsnd(327680,&bla,5,IPC_NOWAIT);
   #endif
 #if 0  #if 0
   char buf[PATH_MAX];    char buf[PATH_MAX];
   printf("%s\n",realpath("../../incoming/..///.zshrc",buf));    printf("%s\n",realpath("../../incoming/..///.zshrc",buf));

Removed from v.1.56  
changed lines
  Added in v.1.57


LinuxTV legacy CVS <linuxtv.org/cvs>