]>
git.ipfire.org Git - thirdparty/shadow.git/blob - lib/get_gid.c
2 * SPDX-FileCopyrightText: 2009 , Nicolas François
4 * SPDX-License-Identifier: BSD-3-Clause
12 #include "prototypes.h"
17 get_gid(const char *gidstr
, gid_t
*gid
)
23 val
= strtoll(gidstr
, &end
, 10);
24 if ( ('\0' == *gidstr
)
27 || (/*@+longintegral@*/val
!= (gid_t
)val
)/*@=longintegral@*/) {