Untitled
public text v1 · immutablestrpos(const string[],character = ' ')
{
new len = strlen(string);
for(new i = 0; i < len; i++)
{
if (string[i] == character) return i+1;
}
return false;
}
/*
new pos = strpos("hello",'e');
printf("%d",pos);
*/