- add an optimzed version of strcpy and strncpy
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@67 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
parent
eecf33204e
commit
03a093329f
2 changed files with 9 additions and 1 deletions
|
@ -80,6 +80,14 @@ inline static size_t strlen(const char *str)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ARCH_STRNCPY
|
||||
char* strncpy(char *dest, const char *src, size_t n);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ARCH_STRCPY
|
||||
char* strcpy(char *dest, const char *src);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
C_source = rck.c syscall.c gdt.c kb.c timer.c irq.c isrs.c idt.c vga.c multiboot.c pci.c
|
||||
ASM_source = entry.asm
|
||||
ASM_source = entry.asm string.asm
|
||||
|
||||
OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source)))
|
||||
OBJS += $(patsubst %.asm, %.o, $(filter %.asm, $(ASM_source)))
|
||||
|
|
Loading…
Add table
Reference in a new issue