wmii/cmd/wm/layout.c

19 lines
335 B
C
Raw Normal View History

/*
* (C)opyright MMIV-MMV Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include <string.h>
#include "wm.h"
2005-12-21 18:18:11 +03:00
Layout *
match_layout(char *name)
{
2005-12-21 18:18:11 +03:00
Layout *l;
for(l = layouts; l; l = l->next)
if(!strncmp(name, l->name, strlen(l->name)))
return l;
return nil;
}