MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Int_Parse

Function Int_Parse

code/ui/ui_shared.cpp:5241–5255  ·  view source on GitHub ↗

================= Int_Parse ================= */

Source from the content-addressed store, hash-verified

5239=================
5240*/
5241qboolean Int_Parse(const char **p, int *i)
5242{
5243 char *token;
5244 token = COM_ParseExt(p, qfalse);
5245
5246 if (token && token[0] != 0)
5247 {
5248 *i = atoi(token);
5249 return qtrue;
5250 }
5251 else
5252 {
5253 return qfalse;
5254 }
5255}
5256
5257/*
5258=================

Callers 4

Script_DelayFunction · 0.70
Script_TransitionFunction · 0.70
Script_Transition2Function · 0.70
Script_OrbitFunction · 0.70

Calls 1

COM_ParseExtFunction · 0.50

Tested by

no test coverage detected