A simple C buffer scanner for extracting strings separated by a delimiter