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

Function Info_Print

code/qcommon/common.cpp:475–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473
474
475void Info_Print( const char *s ) {
476 char key[512];
477 char value[512];
478 char *o;
479 int l;
480
481 if (*s == '\\')
482 s++;
483 while (*s)
484 {
485 o = key;
486 while (*s && *s != '\\')
487 *o++ = *s++;
488
489 l = o - key;
490 if (l < 20)
491 {
492 memset (o, ' ', 20-l);
493 key[20] = 0;
494 }
495 else
496 *o = 0;
497 Com_Printf ("%s", key);
498
499 if (!*s)
500 {
501 Com_Printf ("MISSING VALUE\n");
502 return;
503 }
504
505 o = value;
506 s++;
507 while (*s && *s != '\\')
508 *o++ = *s++;
509 *o = 0;
510
511 if (*s)
512 s++;
513 Com_Printf ("%s\n", value);
514 }
515}
516
517/*
518============

Callers 4

CL_Clientinfo_fFunction · 0.50
SV_Serverinfo_fFunction · 0.50
SV_Systeminfo_fFunction · 0.50
SV_DumpUser_fFunction · 0.50

Calls 1

Com_PrintfFunction · 0.70

Tested by

no test coverage detected