Chapter 1. Basic String Handling

Table of Contents
String Utilities (strutils.cc)
Version String Manipulation (verstring.cc)
Base64 Encoding Tools (base64.cc)

Here are some particularly simple C functions for manipulating character strings. In general, the only reason they sit in C++ files is to make it easier to link with our C++ functions -- they don't use many C++ features.

String Utilities (strutils.cc)

unhexify()

void unhexify(unsigned char *obuf, char *ibuf)

Reverse the operation performed by hexify(). obuf must be a buffer large enough to contain the entire binary output string; you can calculate this size with (strlen(ibuf) / 2). obuf will NOT be automatically NUL-terminated.