13 lines
266 B
C
13 lines
266 B
C
|
void
|
||
|
c_delete(char *c) {
|
||
|
Row *line = b_getline(buffer, atoi(c + 2));
|
||
|
Row *prev_line = b_getline(buffer, atoi(c + 2) - 1);
|
||
|
if (line == NULL || prev_line == NULL) {puts ("invalid line"); return; }
|
||
|
|
||
|
prev_line->n = line->n;
|
||
|
line->n->p = prev_line;
|
||
|
free(line);
|
||
|
}
|
||
|
|
||
|
|