Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
 
4
void
5
setnetmtpt(char *net, int n, char *x)
6
{
7
	if(x == nil)
8
		x = "/net";
9
 
10
	if(*x == '/'){
11
		strncpy(net, x, n);
12
		net[n-1] = 0;
13
	} else {
14
		snprint(net, n, "/net%s", x);
15
	}
16
}