Changeset 3620 for libcaca/trunk


Ignore:
Timestamp:
Aug 4, 2009, 1:19:34 AM (10 years ago)
Author:
Sam Hocevar
Message:

Add atexit() and EOF to the kernel.

Location:
libcaca/trunk/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/kernel.c

    r2821 r3620  
    135135}
    136136
     137int atexit(void (*function)(void))
     138{
     139    /* FIXME: register function */
     140    return 0;
     141}
     142
    137143/* string.h functions */
    138144void *memset(void *s, int c, size_t n)
  • libcaca/trunk/kernel/kernel.h

    r2821 r3620  
    2121/* Various defines */
    2222#define NULL ((void *)0)
     23#define EOF (-1)
    2324#define BUFSIZ 4096
    2425#define RAND_MAX ((unsigned int)0x8000000)
     
    7879void exit(int status);
    7980void srand(unsigned int s);
     81int atexit(void (*function)(void));
    8082FILE *stdin, *stdout, *stderr;
    8183
Note: See TracChangeset for help on using the changeset viewer.