* 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.
This commit is contained in:
Ian Lance Taylor 1995-07-31 17:24:17 +00:00
parent ca675824e1
commit 67ace729ef
2 changed files with 4 additions and 4 deletions

View file

@ -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 For each @var{file} given, GNU @code{strings} prints the printable
character sequences that are at least 4 characters long (or the number 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 character. By default, it only prints the strings from the initialized
and loaded sections of object files; for other types of files, it prints and loaded sections of object files; for other types of files, it prints
the strings from the whole file. the strings from the whole file.

View file

@ -43,9 +43,9 @@ given, GNU \c
.B strings .B strings
prints the printable character sequences that are at least 4 prints the printable character sequences that are at least 4
characters long (or the number given with the options below) and are characters long (or the number given with the options below) and are
followed by a NUL or newline character. By default, it only prints followed by an unprintable character. By default, it only prints the
the strings from the initialized and loaded sections of object files; strings from the initialized and loaded sections of object files; for
for other types of files, it prints the strings from the whole file. other types of files, it prints the strings from the whole file.
.PP .PP
.B strings .B strings