/[osn-commons]/trunk/uar/selfext.c
ViewVC logotype

Diff of /trunk/uar/selfext.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 56 by rakinar2, Fri Aug 16 18:33:14 2024 UTC revision 57 by rakinar2, Sat Sep 7 15:02:56 2024 UTC
# Line 21  Line 21 
21  #ifdef HAVE_PLIBC  #ifdef HAVE_PLIBC
22  #    include <plibc/errno.h>  #    include <plibc/errno.h>
23  #    include <plibc/stdio.h>  #    include <plibc/stdio.h>
24    #    include <plibc/stdlib.h>
25  #    include <plibc/string.h>  #    include <plibc/string.h>
26  #    include <plibc/unistd.h>  #    include <plibc/unistd.h>
27  #else  #else
28  #    include <errno.h>  #    include <errno.h>
29  #    include <stdio.h>  #    include <stdio.h>
30    #    include <stdlib.h>
31  #    include <string.h>  #    include <string.h>
32  #    include <unistd.h>  #    include <unistd.h>
33  #endif  #endif
# Line 45  uar_deinit () Line 47  uar_deinit ()
47  {  {
48  }  }
49    
50    void
51    test ()
52    {
53        fwrite ("exits\n", 6, 1, stderr);
54    }
55    
56  int  int
57  uar_main ()  uar_main ()
58  {  {
59      printf ("Starting self-extracting archive...\n");      // printf ("Starting self-extracting archive...\n");
60        atexit (&test);
61        fwrite ("Starting self-extracting archive...\n", 36, 1, stderr);
62        exit (EXIT_SUCCESS);
63      return 0;      return 0;
64  }  }

Legend:
Removed from v.56  
changed lines
  Added in v.57

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26