strncpy, strcat and memalign

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux