Hello, [EMAIL PROTECTED] /cygdrive/x $ cat tmp.c typedef unsigned size_t; char *strncpy (char *pDest, const char *pSrc, size_t n) { return pDest; }
[EMAIL PROTECTED] /cygdrive/x $ powerpc-eabi-gcc -v Using built-in specs. Target: powerpc-eabi Configured with: ../gcc-4.1.1/configure --target=powerpc-eabi --with-cpu=440 --e nable-languages=c,c++ Thread model: single gcc version 4.1.1 [EMAIL PROTECTED] /cygdrive/x $ powerpc-eabi-gcc -S tmp.c -o tmp.s [EMAIL PROTECTED] /cygdrive/x $ cat tmp.s .file "tmp.c" .section ".text" .align 2 .globl strncpy .type strncpy, @function strncpy: stwu 1,-32(1) stw 31,28(1) mr 31,1 stw 3,8(31) stw 4,12(31) stw 5,16(31) lwz 0,8(31) mr 3,0 lwz 11,0(1) lwz 31,-4(11) mr 1,11 blr .size strncpy, .-strncpy .ident "GCC: (GNU) 4.1.1" [EMAIL PROTECTED] /cygdrive/x $ Is there a magic flag? I want to test the source for null pointer... Etienne. ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com