16#ifndef STRING_UTILS_INC
17#define STRING_UTILS_INC
21#include <learning/learn_debug.h>
66extern void message(
const char* msg, ...);
Scalar length(const Quaternion &q)
char * strConcat(int n,...)
Returns the concatenation n strings.
char * string_copy(char *c)
copies a string
struct StringBuffer_ StringBuffer
The StringBuffer structure stores buffers of strings.
char * strRemoveSuffix(char *filename, char c='.')
Returns a fresh copy of the name of a file without suffix.
StringBuffer * read_string(FILE *f, StringBuffer *s)
Reads a string dynamically.
char * strBaseName(char *filename)
Returns the name of a file without leading pathname.
void message(const char *msg,...)
Prints a message.
void FreeStringBuffer(StringBuffer **s)
Given a pointer to a stringbuffer pointer, free it and clear it.
StringBuffer * NewStringBuffer(int length)
Make a new stringbuffer.
StringBuffer * SetStringBufferLength(StringBuffer *s, unsigned int l)
The StringBuffer structure stores buffers of strings.
char * string
This is the string.
unsigned int length
This is the buffer length.
char * c
This is the buffer.