logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

user_group_parse.h (365B)


  1. // utils-std: Collection of commonly available Unix tools
  2. // SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. // SPDX-License-Identifier: MPL-2.0
  4. #define _POSIX_C_SOURCE 200809L
  5. #include <sys/types.h> // uid_t, gid_t
  6. extern const char *argv0;
  7. int parse_user(char *str, uid_t *user);
  8. int parse_group(char *str, gid_t *group);