summaryrefslogtreecommitdiff
path: root/src/libstddjb/fmtscan_asc.c
blob: c33c0eceddf341f865fb960a78a8f241ddad6f7a (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include <skalibs/fmtscan.h>

unsigned char fmtscan_asc (unsigned char c)
{
  static char const *tab = "0123456789abcdefghijklmnopqrstuvwxyz" ;
  return (c >= 36) ? 0 : tab[c] ;
}