All pastes #441314 Raw Edit

YSI_INI INI_GetTag

public cpp v1 · immutable
·published 2007-04-15 16:54 UTC
rendered paste body
/*----------------------------------------------------------------------------*-Function:	INI_GetTagNameParams:	source - The string you want to get a tag from.	dest - The place you want to store the tag toReturn:	bool: Found the tag correctly.Notes:	--*----------------------------------------------------------------------------*/bool:INI_GetTagName(source[], dest[]){	if (source[0] != '[') return false;	new		len = chrfind(']', source);	if (len == -1) return false;	strcpy(dest, source[1], len - 1);	return true;}