mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
19 lines
294 B
C
19 lines
294 B
C
/* Copyright ©2008-2010 Kris Maglione <maglione.k at Gmail>
|
|
* See LICENSE file for license details.
|
|
*/
|
|
#include <string.h>
|
|
#include "util.h"
|
|
|
|
void
|
|
uniq(char **toks) {
|
|
char **p, **q;
|
|
|
|
q = toks;
|
|
if(*q == nil)
|
|
return;
|
|
for(p=q+1; *p; p++)
|
|
if(strcmp(*q, *p))
|
|
*++q = *p;
|
|
*++q = nil;
|
|
}
|