fd90718b4c
Provided by Ben Collver (collver@linuxfreemail.com) in PR 12927 helpdeco is a windows .hlp to RTF converter.
37 lines
905 B
Text
37 lines
905 B
Text
$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 */
|