source: CMT/v1r10p20011126/Visual/popen.cxx @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 498 bytes
Line 
1#include <stdio.h> 
2#include <stdlib.h> 
3#include <direct.h>
4 
5int main () 
6{ 
7    if (!_chdir ("C:/dev/TCm/v1/Win32Debug") == 0) return (1);
8
9        FILE* f = _popen ("dumpbin /symbols tcmlib.lib", "r"); 
10        if (f == NULL) 
11        { 
12                printf ("rate\n"); 
13        } 
14        else 
15        { 
16                char line[256]; 
17                char* ptr; 
18 
19                printf ("ok\n"); 
20 
21                while ((ptr = fgets (line, sizeof (line), f)) != NULL) 
22                { 
23                        printf ("> %s\n", line); 
24                } 
25                printf ("ok\n"); 
26                _pclose (f); 
27        }
28
29        return (0);
30} 
Note: See TracBrowser for help on using the repository browser.