keygen/src/main.c
/**
 * print_usage_msg() - Print usage message
 * @name: The name of the program
 *
 * Prints usage message detailing parameters and usage
 *
 * Return: None
 */
Print usage message
@name: The name of the program

Prints usage message detailing parameters and usage

None
Print usage message @name : The name of the program Prints usage message detailing parameters and usage None
static void print_usage_msg(char *name)
{
    const char *help_msg =
            "Provision and register credentials (key and cert) for enftun to connect.\n"
            "\n"
            "Usage: %s -c CONF_FILE -a ADDRESS -u USERNAME [-e /etc/enftun/]\n"
            "CONF_FILE: Path to the config file for the enftun instance (/etc/enftun/enf0.conf)\n"
            "ADDRESS: The IPv6 address to provision credentials for. If a ::/64 network is provided, a new, randomly generated IPv6 address in the network will created.\n"
            "USERNAME: Your ENF API username.\n"
            "\n"
            "This program will prompt for your password.\n";
        printf(help_msg, name);
}
static void print_usage_msg ( char * name ) { const char * help_msg = " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " ; printf ( help_msg , name ) ; }
print_usage_msg() - Print usage message
 @name: The name of the program
print_usage_msg () - Print usage message @name : The name of the program