source: azure_iot_hub/trunk/musl-1.1.18/src/passwd/getspnam.c@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-csrc
File size: 297 bytes
Line 
1#include "pwf.h"
2
3#define LINE_LIM 256
4
5struct spwd *getspnam(const char *name)
6{
7 static struct spwd sp;
8 static char *line;
9 struct spwd *res;
10 int e;
11
12 if (!line) line = malloc(LINE_LIM);
13 if (!line) return 0;
14 e = getspnam_r(name, &sp, line, LINE_LIM, &res);
15 if (e) errno = e;
16 return res;
17}
Note: See TracBrowser for help on using the repository browser.