All of lore.kernel.org
 help / color / mirror / Atom feed
* strncpy, strcat and memalign
@ 2010-08-01  0:10 Jon Grant
       [not found] ` <AANLkTimhujBTS5G_Q3BoFrVe1DKXsftrN14eMC5BD+di-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Grant @ 2010-08-01  0:10 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello

I think these two man pages could be adjusted to use a consistent name
for "nul" terminators, that is '\0' in a const char * string.
http://linux.die.net/man/3/strncpy


this one consistently uses '\0'
http://linux.die.net/man/3/strcat

strncpy talks about '\0', "null-terminating", and "null byte"

IMHO "NUL" is the correct name to use, which is different again (N.B.
single L), compared to NULL (#define NULL (void*)0


Also this page seems to have lost formatting, this may only be the web
page generation though.


http://linux.die.net/man/3/memalign
Synopsis

#define _XOPEN_SOURCE 600#include <stdlib.h>
int posix_memalign(void **memptr, size_t alignment, size_t size);
#include <malloc.h>
void *valloc(size_t size);void *memalign(size_t boundary, size_t size);


See the #include is not on its own line after "XOPEN_SOURCE 600".
Likewise memalign should be on its own line.

Thank you for taking a look, Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-30 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-01  0:10 strncpy, strcat and memalign Jon Grant
     [not found] ` <AANLkTimhujBTS5G_Q3BoFrVe1DKXsftrN14eMC5BD+di-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-29  7:08   ` Michael Kerrisk
     [not found]     ` <AANLkTinYg=ke4ju2L+6aqGQNEvzB4JuomfFUrV9sRKkG-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-30 10:45       ` Jon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.