Compare commits
No commits in common. "6fa0ea91bd3b390ef3591c7bc7f70aee9466a930" and "1f1a11f886b0ac5ae964808ac0cf7d56fae42833" have entirely different histories.
6fa0ea91bd
...
1f1a11f886
@ -1,28 +0,0 @@
|
||||
puterr(str)
|
||||
{
|
||||
local ptr = str;
|
||||
|
||||
loop
|
||||
{
|
||||
if ([ptr] == 0)
|
||||
break;
|
||||
err [ptr];
|
||||
ptr++;
|
||||
}
|
||||
err '\n';
|
||||
}
|
||||
|
||||
cmd_write(data, args)
|
||||
{
|
||||
local i = 0;
|
||||
|
||||
if ([data + LOCATION_LENGTH] == 0)
|
||||
return 0;
|
||||
loop
|
||||
{
|
||||
if (i == [data + LOCATION_LENGTH])
|
||||
return 0;
|
||||
puterr([[[data + LOCATION_ARRAY] + i] + MAP_VALUE]);
|
||||
i++;
|
||||
}
|
||||
}
|
@ -170,14 +170,12 @@ main()
|
||||
cmd_delete(data, NULL);
|
||||
else if (strcmp(cmd, "h") == 0)
|
||||
cmd_help(data, NULL);
|
||||
else if (strcmp(cmd, "w") == 0)
|
||||
cmd_write(data, NULL);
|
||||
else
|
||||
error(data, "cmd not foud");
|
||||
free(cmd);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
free(cmd);
|
||||
free(ranges);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user