Get rid of src/lib/gen/copy.c
The function that gave its name to this file is long gone, the file's description is bogus, and it contains just one definition. Move that to ../subs/border.c, and delete the file.
This commit is contained in:
parent
3d2518a724
commit
1cbb37d4fb
3 changed files with 22 additions and 61 deletions
|
@ -38,6 +38,27 @@
|
|||
#include "prototypes.h"
|
||||
#include "xy.h"
|
||||
|
||||
/*
|
||||
* space-fill a map or radar scan;
|
||||
* null terminate
|
||||
*/
|
||||
void
|
||||
blankfill(char *ptr, struct range *range, int size)
|
||||
{
|
||||
char *p;
|
||||
int row;
|
||||
int col;
|
||||
|
||||
for (row = 0; row < range->height; row++) {
|
||||
col = (range->width + 1) * (size + 1) / 2 - 1;
|
||||
p = ptr;
|
||||
while (--col >= 0)
|
||||
*p++ = ' ';
|
||||
*p++ = 0;
|
||||
ptr += MAPWIDTH(size);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
border(struct range *rp, char *prefstr, char *sep)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue