home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
COMPILER
/
GREP
/
README
< prev
Wrap
Text File
|
1995-06-08
|
5KB
|
131 lines
SAMPLE NAME: GREP
COPYRIGHT:
----------
Copyright (C) International Business Machines Corp., 1991,1995.
DISCLAIMER OF WARRANTIES:
-------------------------
The following [enclosed] code is sample code created by IBM
Corporation. This sample code is not part of any standard IBM product
and is provided to you solely for the purpose of assisting you in the
development of your applications. The code is provided "AS IS",
without warranty of any kind. IBM shall not be liable for any damages
arising out of your use of the sample code, even if they have been
advised of the possibility of such damages.
REVISION LEVEL: 1.0
---------------
DESCRIPTION:
This program is a simple grep with limited regular expression
support. Type Grep by itself for more help.
TASK:
Changes the date and time of selected files to the date and time
at which the command is run.
CONCEPT/FEATURE:
This program demonstrates how various C constructs are used; it
demonstrates how to do subdirectory searching through the help of
various API calls.
PROJECT LOCATION:
Inside the COMPILER Sample folder (inside the VisualAge C++
SAMPLES folder).
SOURCE FILE LOCATION:
X:\ibmcpp\samples\compiler\grep
where X: is the drive you installed the samples and document
component of VisualAge C++.
HOW TO RUN THE SAMPLE:
FROM WITHIN THE WORKFRAME ENVIRONMENT:
Open the Samples folder on your OS/2 desktop then double-click on
the project's icon to open the project view of the sample. Click
on the RUN button of the project's toolbar.
FROM THE COMMAND LINE:
Simply type the name of the .EXE file, that is:
GREP
HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
FROM WITHIN THE WORKFRAME ENVIRONMENT:
Open the Samples folder on your OS/2 desktop then double-click on
the project's icon to open the project view of the sample. In the
upper half of the project window you will see the icons of the
files associated with the sample. From the Project pulldown,
select BUILD -> REBUILD ALL. To run the sample project,
see HOW TO RUN THE SAMPLE above.
FROM THE COMMAND LINE:
A command file is provided to allow rebuilding of the WorkFrame
projects from the command line. Simply type:
BUILD
To run the sample project, see HOW TO RUN THE SAMPLE
project above.
SOFTWARE/HARDWARE PREREQUISTES:
o IBM VisualAge C++
o OS/2 2.1 or Warp
o IBM or compatible 386 and up.
ADDITIONAL INFORMATION:
For more information on the creation and use of projects in the
WorkFrame environment, see the VisualAge C++ for OS/2 User's
Guide.
To access an online book, simply open the main VisualAge C++
desktop folder, then open the Information Folder inside. To view
a book, double-click on that book's icon.
SOURCE FILES - GREP
Required files/libraries:
GREP.C
Source code
GREP.H
Common definitions
GREP.MAK
Make file for this program
HELP.C
Help procedures
OS2.H
APIs include file
STDLIB.H
Standard library function declarations
STRING.H
String handling function declarations
STDIO.H
Handling IO
CTYPE.H
For mapping different casing
OS2386.LIB
Presentation Manager/OS2 library
DDE4SBS.LIB
C Set++ Standard Library