Commit fb00d120 by Christian Brauner Committed by Stéphane Graber

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: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent b1a22e3a
......@@ -34,6 +34,10 @@
#include "config.h"
#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);
extern int get_u16(unsigned short *val, const char *arg, int base);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment