mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 02:53:10 -04:00
The approach I used was to create a "poor man's" gets macro as an example. Though not the same as gets() it approximates gets() well enough. We might want to consider this approach in base. This is for ttps://reviews.freebsd.org/D12298. PR: 222796 Requested by: emaste
10 lines
283 B
C
10 lines
283 B
C
--- hex.c.orig 1993-04-22 13:40:04.000000000 -0700
|
|
+++ hex.c 2017-10-06 07:25:01.182767000 -0700
|
|
@@ -85,6 +85,7 @@
|
|
char *s;
|
|
|
|
do {
|
|
+#define gets(a) fgets(a,sizeof(a),stdin)
|
|
if( gets(str) == NULL )
|
|
return NULL;
|
|
if( *str != '\t' && *str != ' ' && PrintFrames )
|