From 67ace729efea5b16f9b98e97f2d24b40c3d36ff3 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 31 Jul 1995 17:24:17 +0000 Subject: [PATCH] * strings.c (print_strings): For compatibility with existing strings programs, print strings which are not terminated with a null byte or a newline. * binutils.texi, strings.1: Update documentation accordingly. --- binutils/binutils.texi | 2 +- binutils/strings.1 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/binutils/binutils.texi b/binutils/binutils.texi index c2f04047de4..395e2b12115 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -1278,7 +1278,7 @@ strings [-afov] [-@var{min-len}] [-n @var{min-len}] [-t @var{radix}] [-] For each @var{file} given, GNU @code{strings} prints the printable character sequences that are at least 4 characters long (or the number -given with the options below) and are followed by a NUL or newline +given with the options below) and are followed by an unprintable character. By default, it only prints the strings from the initialized and loaded sections of object files; for other types of files, it prints the strings from the whole file. diff --git a/binutils/strings.1 b/binutils/strings.1 index 616a83e658f..88ab1d8315e 100644 --- a/binutils/strings.1 +++ b/binutils/strings.1 @@ -43,9 +43,9 @@ given, GNU \c .B strings prints the printable character sequences that are at least 4 characters long (or the number given with the options below) and are -followed by a NUL or newline character. By default, it only prints -the strings from the initialized and loaded sections of object files; -for other types of files, it prints the strings from the whole file. +followed by an unprintable character. By default, it only prints the +strings from the initialized and loaded sections of object files; for +other types of files, it prints the strings from the whole file. .PP .B strings -- 2.30.2