FINDSTR(1) — HP-UX
NAME
findstr − find strings for inclusion in message catalogs
SYNOPSIS
findstr file ...
DESCRIPTION
Findstr examines files of C source code for uncommented string constants, which it places along with the surrounding quotes on the standard output, preceding each by the file name, start position, and length. This information will be used by insertmsg(1). Findstr does not output strings that are parameters of the catgets(3C) routine.
WARNINGS
Findstr outputs initialization strings of static string variables. Calling insertmsg(1) with these strings causes their replacement with a call to catgets(3C). Since the initializer must be a string, this assignment results in an invalid C declaration. For example, the following line:
static char *x[] = "message"
is modified by insertmsg(1) to:
static char *x[] = (catgets(nlmsg_fd,NL_SETN,1,"message"))
These strings should be manually removed from findstr output before being input to insertmsg(1).
SEE ALSO
INTERNATIONAL SUPPORT
8- and 16-bit data; 8-bit file names, messages.
Hewlett-Packard Company — May 11, 2021