Phantasmal Site > Phantasmal API > API Listing > prefix_string
API Function: prefix_string
- Summary:
- return whether one string is a prefix of another
- Defined In LPC Object:
- /usr/common/sys/stringd.c
- Prototype:
- int prefix_string(string prefix, string text)
- Can Be Called By:
- Anybody
- Description:
-
Returns true if 'prefix' is a prefix of 'text', false otherwise.
- Return Value:
-
1 for true, 0 for false.
- Errors:
- Normally none.
- See Also:
-
|