public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] memset_s
@ 2017-11-10  9:54 Jorge Almeida
  2017-11-10 10:52 ` Marc Joliet
  2017-11-10 11:38 ` Nikos Chantziaras
  0 siblings, 2 replies; 28+ messages in thread
From: Jorge Almeida @ 2017-11-10  9:54 UTC (permalink / raw
  To: gentoo-user

I'm trying to use memset_s() but the system (glibc?) doesn't know
about it. I also tried to compile against musl, same result.

There's precious little info about memset_s in the net. Does it exist
at all? No man page.

(https://www.cs.helsinki.fi/group/boi2016/doc/cppreference/reference/en.cppreference.com/w/c/string/byte/memset.html)

What I tried:

#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#define __STDC_WANT_LIB_EXT1__  1
#include <string.h>
#include <stdio.h>

int main(int argc, char** argv){
#ifndef __STDC_LIB_EXT1__
printf("CRAP\n");
#else
printf("COOL\n");
#endif
}

Compiled with -std=c11

You can guess what the output is.

Someone using it?

Jorge Almeida


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

end of thread, other threads:[~2017-11-16  0:20 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10  9:54 [gentoo-user] memset_s Jorge Almeida
2017-11-10 10:52 ` Marc Joliet
2017-11-10 11:34   ` Jorge Almeida
2017-11-10 16:25     ` R0b0t1
2017-11-10 18:20       ` Alexander Kapshuk
2017-11-10 20:09       ` Jorge Almeida
2017-11-10 23:19         ` R0b0t1
2017-11-11  0:10           ` Jorge Almeida
2017-11-13  3:03             ` Mart Raudsepp
2017-11-13  7:17               ` Jorge Almeida
2017-11-13 10:44                 ` [gentoo-user] memset_s Nikos Chantziaras
2017-11-13 11:16                   ` Jorge Almeida
2017-11-13 11:38                   ` Mart Raudsepp
2017-11-13 14:26                     ` Nikos Chantziaras
2017-11-14 17:36         ` [gentoo-user] memset_s Jorge Almeida
2017-11-15  4:42           ` R0b0t1
2017-11-15  7:22             ` Jorge Almeida
2017-11-15 15:28             ` [gentoo-user] memset_s Grant Edwards
2017-11-15 15:41               ` R0b0t1
2017-11-15 15:48                 ` R0b0t1
2017-11-15 21:42                   ` Grant Edwards
2017-11-16  0:19                     ` R0b0t1
2017-11-15 15:50                 ` Jorge Almeida
2017-11-15 17:39                   ` Michael Orlitzky
2017-11-15  8:54           ` Nikos Chantziaras
2017-11-15  9:05             ` Jorge Almeida
2017-11-15 10:31               ` Nikos Chantziaras
2017-11-10 11:38 ` Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox