diff options
Diffstat (limited to 'bta/sys/utl.c')
-rw-r--r-- | bta/sys/utl.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bta/sys/utl.c b/bta/sys/utl.c index ca9a765..1487f2e 100644 --- a/bta/sys/utl.c +++ b/bta/sys/utl.c @@ -20,7 +20,7 @@ ** integer. Acceptable values in string are 0-9. If invalid ** string or string value too large, -1 is returned. Leading ** spaces are skipped. -** +** ** ** Returns Integer value or -1 on error. ** @@ -60,7 +60,7 @@ INT16 utl_str2int(const char *p_s) ** String p_s must be uppercase. String p_t is converted to ** uppercase if lowercase. If p_s ends first, the substring ** match is counted as a match. -** +** ** ** Returns 0 if strings match, nonzero otherwise. ** @@ -100,7 +100,7 @@ int utl_strucmp(const char *p_s, const char *p_t) ** Description This utility function converts a UINT16 to a string. The ** string is NULL-terminated. The length of the string is ** returned; -** +** ** ** Returns Length of string. ** @@ -140,7 +140,7 @@ UINT8 utl_itoa(UINT16 i, char *p_s) ** Description This function calls GKI_freebuf to free the buffer passed ** in, if buffer pointer is not NULL, and also initializes ** buffer pointer to NULL. -** +** ** ** Returns Nothing. ** @@ -161,7 +161,7 @@ void utl_freebuf(void **p) ** ** Description This function updates the local Device Class. ** -** Parameters: +** Parameters: ** p_cod - Pointer to the device class to set to ** ** cmd - the fields of the device class to update. @@ -234,9 +234,9 @@ BOOLEAN utl_set_device_class(tBTA_UTL_COD *p_cod, UINT8 cmd) ** ** Function utl_isintstr ** -** Description This utility function checks if the given string is an +** Description This utility function checks if the given string is an ** integer string or not -** +** ** ** Returns TRUE if successful, Otherwise FALSE ** @@ -258,9 +258,9 @@ BOOLEAN utl_isintstr(const char *p_s) ** ** Function utl_isdialstr ** -** Description This utility function checks if the given string contains +** Description This utility function checks if the given string contains ** only dial digits or not -** +** ** ** Returns TRUE if successful, Otherwise FALSE ** @@ -271,7 +271,7 @@ BOOLEAN utl_isdialstr(const char *p_s) for(i=0; p_s[i] != 0; i++) { - if(!(((p_s[i] >= '0') && (p_s[i] <= '9')) + if(!(((p_s[i] >= '0') && (p_s[i] <= '9')) || (p_s[i] == '*') || (p_s[i] == '+') || (p_s[i] == '#') || (p_s[i] == ';') || ((p_s[i] >= 'A') && (p_s[i] <= 'C')))) return FALSE; |