library/src/exploitation/WebExploitation/AppEngineErrCodes/BP-WebExploitCFMErrCodes.cc
// Generates an allocated array of Msql error codes
Generates an allocated array of Msql error codes
Generates an allocated array of Msql error codes
P_BP_CFM_ERR_CODES BP_CFMGenErrCodeArray()
{
	size_t retSize = sizeof(cfmErrCodes);
	P_BP_CFM_ERR_CODES retTable = (P_BP_CFM_ERR_CODES) bpcalloc(retSize, 1);
	if(!retTable)
		return NULL;
	size_t num_entries = retSize / sizeof(BP_CFM_ERR_CODES);
	size_t x = 0;
	for(x = 0; x < num_entries; x++)
	{
		retTable[x].description = bpstrdup(cfmErrCodes[x].description);
	}
	return retTable;
}
P_BP_CFM_ERR_CODES BP_CFMGenErrCodeArray ( ) { size_t retSize = sizeof ( cfmErrCodes ) ; P_BP_CFM_ERR_CODES retTable = ( P_BP_CFM_ERR_CODES ) bpcalloc ( retSize , 1 ) ; if ( ! retTable ) return NULL ; size_t num_entries = retSize / sizeof ( BP_CFM_ERR_CODES ) ; size_t x = 0 ; for ( x = 0 ; x < num_entries ; x ++ ) { retTable [ x ] . description = bpstrdup ( cfmErrCodes [ x ] . description ) ; } return retTable ; }
Generates an allocated array of Msql error codes
Generates an allocated array of Msql error codes
// calculate the number of entries in the table // duplicate the array // duplicate string in table // return the table