commit - 7d146290072960fd3ed561c3512e5b747699aa97
commit + 02114118307cdfb8d94f5ee5621eae57627a472c
blob - 761dff39d97b257f918289b5a00a76b56670f296
blob + cd9fa6854589287ec930e4907a7911901234ed76
--- mymenu.c
+++ mymenu.c
char *ep;
if (str == NULL)
- goto invc;
+ goto err;
len = strlen(str);
/* +1 for the # ath the start */
if (*str != '#' || len > 9 || len < 4)
- goto invc;
+ goto err;
++str; /* skip the # */
errno = 0;
tmp = (rgba_t)(uint32_t)strtoul(str, &ep, 16);
if (errno)
- goto invc;
+ goto err;
switch (len - 1) {
case 3:
return 0U;
-invc:
+err:
fprintf(stderr, "Invalid color: \"%s\".\n", str);
if (def != NULL)
return parse_color(def, NULL);