string.h
上传用户:qddsws
上传日期:2022-06-22
资源大小:723k
文件大小:1k
- #ifndef STRING_H
- #define STRING_H
- /* per va_list */
- #include <stdarg.h>
- #include <types.h>
- #define SWIDTH 800
- #define SHEIGHT 600
- #define DEF_FONT 5 // hi ha 1,2 i 4
- #define DEF_COLOR 0x0000
- #define BACKGROUND_COLOR 0xFFFF
- #define BPP 2 // Bytes per Pixel
- #define FONT_W 8 // Totes les fonts disponibles son de 8b
- #define FONT_H 8 // Font 1 i 2 de 8b, font 4 de 16
- #define VGA (word*)0xd0800000
- /* Funcions OK */
- void snprintf (char* dest,const char *fmt, ...);
- char *itoa (unsigned long number,char* ret, int base) ;
- /* Funciona per renovar */
- void act_print (int i) ;
- void deact_print () ;
- void xyprint( char * str, int x, int y, int color, int font) ;
- void kprint( char * str );
- void clrscr( );
- void* memset(void* dest, int c, unsigned int count);
- void* memwordset(void* dest, word c, dword count) ;
- void* memcpy(void* dest, const void* src, unsigned int count);
- unsigned int strlen(const char* str);
- void jump_to_line (int l);
- void hexkprint4b(unsigned long num) ;
- void hexkprint8b(unsigned long num) ;
- void test_printk( char * str);
- unsigned int strlen(const char* str);
- char * strcpy(char * dest,const char *src);
- int strcmp(const char * cs,const char * ct);
- int strncmp(const char * cs,const char * ct,int n);
- int abs (int num);
- void xyprint_area( char * str, int x, int y, int color, int font, word* temp_area);
- #endif