Back to index

php5  5.3.10
Functions
fpm_str.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static char * str_purify_filename (char *dst, char *src, size_t size)

Function Documentation

static char* str_purify_filename ( char *  dst,
char *  src,
size_t  size 
) [inline, static]

Definition at line 8 of file fpm_str.h.

{
       char *d, *end;

       d = dst;
       end = dst + size - 1;

       for (; d < end && *src; ++d, ++src) {
              if (* (unsigned char *) src < ' ' || * (unsigned char *) src > '\x7f') {
                     *d = '.';
              } else {
                     *d = *src;
              }
       }

       *d = '\0';

       return d;
}

Here is the caller graph for this function: