C Strings in API Routines Are Null Terminated

Last reviewed: August 28, 1995
Article ID: Q103592
The information in this article applies to:
  • Microsoft FoxPro Library Construction Kit for MS-DOS, version 2.5
  • Microsoft FoxPro Library Construction Kit for Windows, version 2.5

FoxPro strings passed to application programming interface (API) routines should be null terminated either in the API routine or by concatenating CHR(0) to the string argument in FoxPro. To see how this is done within a C API routine, refer to the examples in the Library Construction Kit.


Additional reference words: FoxWin FoxDos LCK 2.50 string arguments null
terminated lck
KBCategory: kbprg
KBSubcategory: FxtoolLck


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 28, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.