mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
lib, net: make isodigit() public and use it
There are at least two users of isodigit(). Let's make it a public function of ctype.h. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
095d141b2e
commit
2e0fb404c8
3 changed files with 6 additions and 2 deletions
|
@ -281,7 +281,6 @@ static inline int parse_lineno(const char *str, unsigned int *val)
|
|||
* allow the user to express a query which matches a format
|
||||
* containing embedded spaces.
|
||||
*/
|
||||
#define isodigit(c) ((c) >= '0' && (c) <= '7')
|
||||
static char *unescape(char *str)
|
||||
{
|
||||
char *in = str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue