src/btree/utils.c
/*======================================
 * fkey2path -- Convert file key to path
 *====================================*/
- Convert file key to path
- Convert file key to path
STRING
fkey2path (FKEY fkey)
{
	static char path[6];
	INT16 hi = (fkey & 0xffff0000) >> 16;
	INT16 lo = fkey & 0x0000ffff;
	path[0] = (hi / 26) + 'a';
	path[1] = (hi % 26) + 'a';
	path[2] = LLCHRDIRSEPARATOR;
	path[3] = (lo / 26) + 'a';
	path[4] = (lo % 26) + 'a';
	path[5] = 0;
	return path;
}
STRING fkey2path ( FKEY fkey ) { static char path [ 6 ] ; INT16 hi = ( fkey & 0xffff0000 ) >> 16 ; INT16 lo = fkey & 0x0000ffff ; path [ 0 ] = ( hi / 26 ) + ' ' ; path [ 1 ] = ( hi % 26 ) + ' ' ; path [ 2 ] = LLCHRDIRSEPARATOR ; path [ 3 ] = ( lo / 26 ) + ' ' ; path [ 4 ] = ( lo % 26 ) + ' ' ; path [ 5 ] = 0 ; return path ; }
fkey2path -- Convert file key to path
fkey2path -- Convert file key to path