Score:0

No man page for strcpy_s

fr flag

I don't have the man page for some c11 string functions such as strcpy_s and strncpy_s. I have the most updated version of gcc but somehow it doesn't recognize gcc -std=c11 -D_DEFAULT_SOURCE -Wall -Werror -pedantic with #define __STDC_WANT_LIB_EXT1__ 1 before #include <string.h>. I'd like to read the man pages to find out why.

I have already done sudo apt-get update followed by sudo apt-get install glibc-doc. So far I also installed manpages-dev, manpages-posix-dev, Any idea? I also would like to know, if I want to install man page of X, how do I even know what to install? Is there a man page search function we can use?

Score:2
us flag

I don't think there is a set of manpages for the C standard. There is one for the POSIX standard, which overlaps significantly with the C standard but isn't the same. And while there's one for the system C library, which would be glibc, glibc doesn't implement these functions either, so you won't find them in the glibc documentation.

There is https://manpages.ubuntu.com/ where you can search Ubuntu manpages online. Each manpage will also show which package it is from.

Nicholas Humphrey avatar
fr flag
Thanks, gotcha, searched ubuntu manpages and didn't find it. Guess it was not implemented in gcc after all.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.