mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Move strtoint() to common
Several places used similar code to convert a string to an int, so take the function that we already had and make it globally available. Reviewed-by: Michael Paquier <michael@paquier.xyz>
This commit is contained in:
@ -11,5 +11,6 @@
|
||||
#define COMMON_STRING_H
|
||||
|
||||
extern bool pg_str_endswith(const char *str, const char *end);
|
||||
extern int strtoint(const char *restrict str, char **restrict endptr, int base);
|
||||
|
||||
#endif /* COMMON_STRING_H */
|
||||
|
Reference in New Issue
Block a user