/*----------------------------------------------------------------------------*- Function: INI_GetTagName Params: source - The string you want to get a tag from. dest - The place you want to store the tag to Return: 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; }