summaryrefslogtreecommitdiff
path: root/textproc/helpdeco/patches/patch-ac
blob: 7e701bf3fee8c49dca825d763b8da93e3b5a8d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-ac,v 1.1.1.1 2001/05/23 15:47:45 agc Exp $

--- helpdec1.c.orig	Wed May  9 05:49:01 2001
+++ helpdec1.c	Wed May  9 06:04:29 2001
@@ -1,15 +1,6 @@
 /* HELPDEC1.C - HELPDECO supporting functions */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <string.h>
-#include <conio.h>
-#include <ctype.h>
 #include "helpdeco.h"
 
-extern BOOL overwrite; /* ugly: declared in HELPDECO.C */
-
 void error(char *format,...)
 {
     va_list arg;
@@ -20,16 +11,6 @@
     va_end(arg);
     fputs("\nPress CR to continue at your own risk, any other key to exit.\n",stderr);
     if(getch()!='\r') exit(1);
-}
-
-size_t strlcpy(char *dest,char *src,size_t len) /* limited string copy */
-{
-    size_t i;
-
-    if(!dest) return 0;
-    for(i=0;i<len-1&&src&&src[i];i++) dest[i]=src[i];
-    dest[i]='\0';
-    return i;
 }
 
 void *my_malloc(long bytes) /* save malloc function */