PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sysclib_determine_base.c
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#define SYSCLIB_DISABLE_BUILTINS
12
#include <
sysclib.h
>
13
#include "sysclib_determine_base.h"
14
15
int
sysclib_determine_base(
char
a1)
16
{
17
int
v1;
18
int
result;
19
20
v1 = a1;
21
result = v1 - 48;
22
if
((isdigit(a1)) == 0)
23
{
24
if
((isalpha(v1)) != 0)
25
{
26
return
tolower(v1) - 87;
27
}
28
else
29
{
30
return
9999999;
31
}
32
}
33
return
result;
34
}
sysclib.h
iop
system
sysclib
src
size_optimized
sysclib_determine_base.c
Generated on Thu Nov 14 2024 05:25:29 for PS2SDK by
1.9.8