HEX
Server: LiteSpeed
System: Linux server.searchcove.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: lurax (1083)
PHP: 8.3.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/include/dovecot/str-parse.h
/* Copyright (c) 2022 Dovecot authors, see the included COPYING file */
#ifndef STR_PARSE_H
#define STR_PARSE_H

/* Parse time interval string, return as seconds. */
int str_parse_get_interval(const char *str, unsigned int *secs_r,
			   const char **error_r);
/* Parse time interval string, return as milliseconds. */
int str_parse_get_interval_msecs(const char *str, unsigned int *msecs_r,
				 const char **error_r);
/* Parse size string, return as bytes. */
int str_parse_get_size(const char *str, uoff_t *bytes_r,
		       const char **error_r);
/* Parse boolean string, return as boolean */
int str_parse_get_bool(const char *value, bool *result_r,
		       const char **error_r);

#endif // STR_PARSE_H