=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/Attic/porting.html,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- www/Attic/porting.html 2007/06/18 15:27:16 1.57 +++ www/Attic/porting.html 2009/01/27 13:19:14 1.58 @@ -12,7 +12,7 @@ + content="This document copyright 1997-2009 by OpenBSD.">
strlen
if you include the right header file.
+ implicit declaration of function foo()
+ indicates that a function prototype is missing.
+ This means that the compiler will assume the return type
+ to be an integer.
+ Where the function actually returns a pointer, on 64-bit
+ platforms it will be truncated, usually causing a segmentation
+ fault.
+