kolibrios-fun/programs/system/shell/cmd/cmd_ver.c
Albom 3f7f44fda1 Killall and ccpuid commands are temporarily removed. Text strings are corrected.
git-svn-id: svn://kolibrios.org@1807 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-01-30 11:52:46 +00:00

37 lines
648 B
C

int cmd_ver(char param[])
{
if (!strcmp(param, "kernel"))
{
char *kvbuf;
char *vA, *vB, *vC, *vD;
unsigned *Rev;
kvbuf = malloc(16);
kol_get_kernel_ver(kvbuf);
vA = kvbuf+0;
vA = *vA;
vB = kvbuf+1;
vB = *vB;
vC = kvbuf+2;
vC = *vC;
vD = kvbuf+3;
vD = *vD;
Rev = kvbuf+5;
Rev = *Rev;
#if LANG_ENG
printf (" KolibriOS v%d.%d.%d.%d. Kernel SVN-rev.: %d\n\r", vA, vB, vC, vD, Rev);
#elif LANG_RUS
printf (" KolibriOS v%d.%d.%d.%d. SVN-ॢ. ï¤à : %d\n\r", vA, vB, vC, vD, Rev);
#endif
free(kvbuf);
return TRUE;
}
else
{
printf (" Shell v%s\n\r", SHELL_VERSION);
return TRUE;
}
}