Macros for symbols used in both ASM and C
-The macros take care of prepending the leading underscore when necessary.
This commit is contained in:
@@ -4,10 +4,9 @@
|
||||
/* size_t _strnlen(const char *s, size_t ecx) */
|
||||
/* Return the length of a string. */
|
||||
/* */
|
||||
.text
|
||||
.globl __strnlen
|
||||
.balign 16
|
||||
__strnlen:
|
||||
#include <machine/asm.h>
|
||||
|
||||
ENTRY(_strnlen)
|
||||
push %ebp
|
||||
movl %esp, %ebp
|
||||
push %edi
|
||||
|
||||
Reference in New Issue
Block a user