27 unsigned char h,
s,
b;
35 while ((c = *orig++)) {
45 return strcmp(a0, p1->
name);
61 fprintf(stderr,
"warning: %s is not a known color\n",
str);
64 for (
const char *p =
str; *p !=
'\0'; ++p)
68 ((
double)
last->
s) / 255, ((
double)
last->b) / 255);
static void out(agerrlevel_t level, const char *fmt, va_list args)
Report messages using a user-supplied or default write function.
static agxbuf last
last message
static void agxbfree(agxbuf *xb)
free any malloced resources
static size_t agxbput(agxbuf *xb, const char *s)
append string s into xb
static int agxbprint(agxbuf *xb, const char *fmt,...)
Printf-style output to an agxbuf.
static int agxbputc(agxbuf *xb, char c)
add character to buffer
static char * agxbuse(agxbuf *xb)
replacements for ctype.h functions
static bool gv_isalnum(int c)
static bool gv_isdigit(int c)
static char * canon(graph_t *g, char *s)
struct agxbuf::@59::@60 s