diff options
Diffstat (limited to 'usr/src/lib/libumem/common/stub_stand.c')
-rw-r--r-- | usr/src/lib/libumem/common/stub_stand.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/src/lib/libumem/common/stub_stand.c b/usr/src/lib/libumem/common/stub_stand.c index 2c82364ef1..7a26ea8b7f 100644 --- a/usr/src/lib/libumem/common/stub_stand.c +++ b/usr/src/lib/libumem/common/stub_stand.c @@ -20,6 +20,7 @@ */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -146,3 +147,18 @@ void _tmem_set_cleanup(void (*f)(int, void *)) { } + +int +isspace(int c) +{ + switch (c) { + case ' ': + case '\t': + case '\n': + case '\r': + case '\f': + case '\v': + return (1); + } + return (0); +} |