search for: dstrem

Displaying 1 result from an estimated 1 matches for "dstrem".

Did you mean: dstreg
2004 May 29
1
[patch] Filename conversion
...the filename from src into dest, using at most maxlen + * characters of dest. + **/ +void convert_fname(char *dest, const char *src, unsigned int maxlen) +{ + if (!fname_convert_cmd) { + strlcpy(dest, src, maxlen); + } else { + int res; + const char *srcp; + char *destp; + unsigned int srcrem, dstrem; + + init_fname_convert(); + + /* Send and receive strings simultaneously to avoid deadlock: */ + srcrem = strlen(src)+1; /* chars left to send (incl. terminating LF) */ + dstrem = maxlen-1; /* free chars left in dest */ + srcp = src; + destp = dest; + while(1) { +...