*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@549 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-09 20:21:39 +00:00
parent c7469a7873
commit 1964daf0b3
10 changed files with 25 additions and 13 deletions
+6 -2
View File
@@ -284,7 +284,7 @@ void concat(char *s) { alias("s", s); };
void concatword(char *s)
{
for(char *a = s, *b = s; *a = *b; b++) if(*a!=' ') a++;
for(char *a = s, *b = s; (*a = *b); b++) if(*a!=' ') a++;
concat(s);
};
@@ -299,7 +299,11 @@ int listlen(char *a)
void at(char *s, char *pos)
{
int n = atoi(pos);
loopi(n) s += strspn(s += strcspn(s, " \0"), " ");
loopi(n)
{
s += strcspn(s, " \0");
s += strspn(s, " ");
};
s[strcspn(s, " \0")] = 0;
concat(s);
};