Run-Time Library
The run-time library includes many of the standard C functions (printf etc).
Where they have the same name as a standard C function - they perform the
same function. These functions (plus a few of our own) are listed below:
- int abs(int n) - Absolute value
- Am79970 Ethernet Driver
- int argvize(char *av[],char *str) - break into args
- char *asctime(struct tm *ts) - time as a string
- int atob(int *vp,char *p,int base) - ACSII to binary conversion
- bcopy(char *src,char *dst,int bytes) - copy bytes
- char *btoa(char *dst,unsigned int val,int base) - binary to ASCII conversion
- bzero(char *dst,int bytes) - clear bytes
- void *calloc(nelem,elsize) - allocate zeroed memory
- clearerr(FILE *fp) - clear err
- close(int fd) - close file
- creat(char *fname,mask) - create file
- char *ctime(time_t clock) - time as a string
- exit(int n) - exit program
- Ethernet TFTP download,
API for Ethernet drivers
- fclose(FILE *fp) - close stream
- feof(FILE *fp)
- ferror(FILE *fp)
- fflush(FILE *fp)
- fgetc(FILE *fp)
- fgets(char *dst,int max,FILE *fp)
- fileno(FILE *fp)
- fopen(char *fname,char *mode) - open stream
- fprintf(FILE *fp,char *fmt,va_alist) - print formated to stream
- fputs(char *string,FILE *fp)
- fread(char *dst,int size,int count,FILE *fp)
- fscanf(FILE *fp,char *fmt,va_alist) - read formated from stream
- fseek(FILE *fp,offset,whence)
- fwrite(char *dst,size,count,FILE *fp)
- int getc(FILE *fp) - get character from stream
- int getchar(void) - get character from stdin
- char *gets(char *p) - get string from stdin
- index(char *s,c)
- ioctl(int fd,op,argp)
- IRQInstall - Connecting C Interrupt Handler
- isalnum(char c)
- isalpha(char c)
- iscntrl(char c)
- isdigit(char c)
- islower(char c)
- isprint(char c)
- isspace(char c)
- isupper(char c)
- isxdigit(char c)
- struct tm *localtime(time_t clock) - convert to local time
- lseek(int fd,offset,whence)
- void *malloc(int nbytes)
- memcpy(char *dst,char *src,int nbytes)
- memset(char *s,char c,int n)
- onintr - Connecting an Assembler Interrupt Handler
- open(char *fname,mode)
- printf(char *fmt,va_alist)
- putc(int c,FILE *fp)
- putchar(int c)
- puts(char *p)
- int rand(void)
- int read(int fd,char *buf,int n)
- realloc(char ptr,int size)
- char *rindex(char *s,char c)
- scanf(char *fmt,va_alist)
- signal(op,func)
- sprintf(char *buf,char *fmt,va_alist)
- srand(unsigned int seed)
- sscanf(char *buf,char *fmt,va_alist)
- strlen... - String Functions
- sonic Ethernet Driver
- stime(tp) - set time
- tloc time(tloc),
How time() works
- char tolower(char c)
- char toupper(char c)
- ungetc(char c,FILE *fp)
- write(int fd,char *buf,int n)
FILES
-
The library build is controlled by the following files:
Navigation:
Document Home |
Document Contents |
Document Index