| Last change
 on this file since 2417 was             1319, checked in by bird, 22 years ago | 
        
          | 
peter nielsen testcase.
 | 
        
          | 
              
Property                 cvs2svn:cvs-rev
 set to                 1.1
Property                 svn:eol-style
 set to                 native
Property                 svn:executable
 set to                 *
Property                 svn:keywords
 set to                 Author Date Id Revision | 
        
          | File size:
            422 bytes | 
      
      
| Rev | Line |  | 
|---|
| [1319] | 1 | #define INCL_BASE | 
|---|
|  | 2 | #include <os2.h> | 
|---|
|  | 3 | #include <stdio.h> | 
|---|
|  | 4 |  | 
|---|
|  | 5 |  | 
|---|
|  | 6 |  | 
|---|
|  | 7 | int main(int argc, char **argv) | 
|---|
|  | 8 | { | 
|---|
|  | 9 | int rc; | 
|---|
|  | 10 | if (argc != 3) | 
|---|
|  | 11 | { | 
|---|
|  | 12 | printf("syntax error\n"); | 
|---|
|  | 13 | return 1; | 
|---|
|  | 14 | } | 
|---|
|  | 15 | rc = DosCopy(argv[1], argv[2], DCPY_EXISTING); | 
|---|
|  | 16 | if (!rc) | 
|---|
|  | 17 | printf("Successfully copied %s to %s\n", argv[1], argv[2]); | 
|---|
|  | 18 | else | 
|---|
|  | 19 | printf("Failed with rc=%d copying %s to %s\n", rc, argv[1], argv[2]); | 
|---|
|  | 20 | return rc; | 
|---|
|  | 21 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.