https://github.com/git/git
Revision 786a3e4b8d754d2b14b1208b98eeb0a554ef19a8 authored by Junio C Hamano on 29 April 2024, 14:30:29 UTC, committed by Junio C Hamano on 29 April 2024, 14:30:29 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f4edad9
Raw File
Tip revision: 786a3e4b8d754d2b14b1208b98eeb0a554ef19a8 authored by Junio C Hamano on 29 April 2024, 14:30:29 UTC
Git 2.45
Tip revision: 786a3e4
parse.h
#ifndef PARSE_H
#define PARSE_H

int git_parse_signed(const char *value, intmax_t *ret, intmax_t max);
int git_parse_ssize_t(const char *, ssize_t *);
int git_parse_ulong(const char *, unsigned long *);
int git_parse_int(const char *value, int *ret);
int git_parse_int64(const char *value, int64_t *ret);

/**
 * Same as `git_config_bool`, except that it returns -1 on error rather
 * than dying.
 */
int git_parse_maybe_bool(const char *);
int git_parse_maybe_bool_text(const char *value);

int git_env_bool(const char *, int);
unsigned long git_env_ulong(const char *, unsigned long);

#endif /* PARSE_H */
back to top