home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZCVFUNCS / SAMPLE / TSTFTCP.INC < prev    next >
Text File  |  1993-09-24  |  2KB  |  45 lines

  1. /*
  2. ** /----------------------------------------------------------------------\
  3. ** |             IBM Z Family Reusable Libraries/2 (5641-504)             |
  4. ** |----------------------------------------------------------------------|
  5. ** | (C) Copyright International Business Machines Corporation 1993, 1994 |
  6. ** |----------------------------------------------------------------------|
  7. ** |                       DISCLAIMER OF WARRANTIES                       |
  8. ** |                       ------------------------                       |
  9. ** | The following code is sample code created by IBM Corporation.        |
  10. ** | Such a code is provided to you solely for the purpose of assisting   |
  11. ** | you in the development of your applications. The code is provided    |
  12. ** | "AS IS", without warranty of any kind.  IBM shall not be liable for  |
  13. ** | any damages arising out of your use of the following code, even if   |
  14. ** | they have been advised of the possibility of such damages.           |                                                                         *
  15. ** \----------------------------------------------------------------------/
  16. **
  17. **  Header   : TSTFTCP.INC
  18. **  Authors  : Valerio Tavazzi (TAVAZZI at ROMEPPC)
  19. **             Dario de Judicibus (DEJUDICI at ROMEPPC)
  20. **  Created  : 26 Aug 1992
  21. **  Updated  : 24 Sep 1993
  22. **  Version  : 2.12
  23. **  Content  : Initialize the target DDL control for file conversion
  24. */
  25.  {
  26.    int i ;
  27.    zcvCCSID ccsid[zcvLISTSIZE] ;
  28.  
  29.   /*
  30.   **  Current CCSID in target CCSID field of DDL
  31.   */
  32.    zcvCurrentCCSID(&ccsid[0]) ;
  33.    _ltoa(ccsid[0],Xltfil->XltFilTargetCP,10) ;
  34.  
  35.   /*
  36.   **  Fill the DLL control with all the supported CCSIDs
  37.   */
  38.    zcvQuerySupportedCCSIDs(&ccsid[1]) ;
  39.  
  40.    for (i = 1; i < zcvLISTSIZE && ccsid[i] != zcvENDOFLIST ; i++)
  41.    {
  42.      _ltoa(ccsid[i],Xltfil->XltFilTcpTbl[i],10) ;
  43.    }
  44.  }
  45.