mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 00:21:41 +00:00
utils: add macro __LXC_NUMSTRLEN
This macro can be used to set or allocate a string buffer that can hold any 64bit representable number. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
1fbb7fae52
commit
b07511df5c
@ -35,6 +35,10 @@
|
||||
|
||||
#include "initutils.h"
|
||||
|
||||
/* Useful macros */
|
||||
/* Maximum number for 64 bit integer is a string with 21 digits: 2^64 - 1 = 21 */
|
||||
#define __LXC_NUMSTRLEN 21
|
||||
|
||||
/* returns 1 on success, 0 if there were any failures */
|
||||
extern int lxc_rmdir_onedev(char *path, const char *exclude);
|
||||
extern int get_u16(unsigned short *val, const char *arg, int base);
|
||||
|
Loading…
Reference in New Issue
Block a user