MySQL 8.0.39
Source Code Documentation
mf_format.cc File Reference
#include <string.h>
#include <sys/types.h>
#include <algorithm>
#include <cstring>
#include "m_string.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_macros.h"
#include "my_sys.h"

Functions

char * fn_format (char *to, const char *name, const char *dir, const char *extension, uint flag)
 Formats a filename with possible replace of directory of extension Function can handle the case where 'to' == 'name' For a description of the flag values, consult my_sys.h The arguments should be in unix format. More...
 
size_t strlength (const char *str)
 Calculate the length of str not including any trailing ' '-bytes. More...