aboutsummaryrefslogtreecommitdiff
path: root/util.c
blob: 0f766b6bffd3ae41ed63c70a69d032c26cbef47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <string.h>

#include "util.h"

void blank_to_eol(char *line, size_t len)
{
	size_t i = 0;
	for (i = strnlen(line, len - 1); i < len - 1; i++) {
		line[i] = ' ';
	}
	line[i] = '\0';
}