MCPcopy Create free account
hub / github.com/MariaDB/server / PlugRemoveType

Function PlugRemoveType

storage/connect/plugutil.cpp:207–232  ·  view source on GitHub ↗

/ Remove the file type from a file name. */ Note: this routine is not really implemented for Unix. */ /

Source from the content-addressed store, hash-verified

205/* Note: this routine is not really implemented for Unix. */
206/***********************************************************************/
207LPSTR PlugRemoveType(LPSTR pBuff, LPCSTR FileName)
208{
209#if defined(_WIN32)
210 char drive[_MAX_DRIVE];
211#else
212 char *drive = NULL;
213#endif
214 char direc[_MAX_DIR];
215 char fname[_MAX_FNAME];
216 char ftype[_MAX_EXT];
217
218 _splitpath(FileName, drive, direc, fname, ftype);
219
220 if (trace(2)) {
221 htrc("after _splitpath: FileName=%-.256s\n", FileName);
222 htrc("drive=%-.256s dir=%-.256s fname=%-.256s ext=%-.256s\n",
223 SVP(drive), direc, fname, ftype);
224 } // endif trace
225
226 _makepath(pBuff, drive, direc, fname, "");
227
228 if (trace(2))
229 htrc("buff='%-.256s'\n", pBuff);
230
231 return pBuff;
232} // end of PlugRemoveType
233
234BOOL PlugIsAbsolutePath(LPCSTR path)
235{

Callers 15

GetBlockInfoMethod · 0.85
SetBlockInfoMethod · 0.85
OpenTempFileMethod · 0.85
AllocateBufferMethod · 0.85
RenameTempFileMethod · 0.85
filamvct.cppFile · 0.85
GetOptFileNameMethod · 0.85
DeleteIndexFileMethod · 0.85
EraseMethod · 0.85
SaveIndexMethod · 0.85
InitMethod · 0.85
MapInitMethod · 0.85

Calls 3

_splitpathFunction · 0.85
_makepathFunction · 0.85
htrcFunction · 0.70

Tested by

no test coverage detected