escapes the string inp
escapes the string inp. Uses variable buf. If buf is NULL when the program starts, it will attempt to dynamically allocate the space that it needs, otherwise it will assume that the user has already allocated enough space for the variable buf, which could be up to 3 times the size of inp. If the routine dynamically allocates the space, the user is responsible for freeing it afterwords NOTE: this function doesn't really belong here, I (Larry) plopped it here to work around a "bug" in escape.h (it defines a global, so can't be used in multiple source files). Actually, this routine shouldn't exist anywhere, it's only usage is in get.c's handling of on-the-fly directory generation, which would be better configured to use a combination of req_write_escape_http and req_write_escape_html. That would involve more work than I'm willing to put in right now, though, so here we are.
Alphabetic index Hierarchy of classes