Changeset 3567 for trunk/kStuff/kLdr/kLdrHlp.c
- Timestamp:
- Aug 27, 2007, 9:54:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kStuff/kLdr/kLdrHlp.c
r3537 r3567 54 54 * @param cchVal The size of the buffer pointed to by pszVal. 55 55 */ 56 int kldrHlpGetEnv(const char *pszVar, char *pszVal, size_tcchVal)56 int kldrHlpGetEnv(const char *pszVar, char *pszVal, KSIZE cchVal) 57 57 { 58 58 #ifdef __OS2__ … … 64 64 if (!rc) 65 65 { 66 size_tcch = kLdrHlpStrLen((const char *)pszValue);66 KSIZE cch = kLdrHlpStrLen((const char *)pszValue); 67 67 if (cchVal > cch) 68 68 kLdrHlpMemCopy(pszVal, pszValue, cch + 1); … … 96 96 97 97 /** 98 * Gets an environment variable and converts it to a size_t.98 * Gets an environment variable and converts it to a KSIZE. 99 99 * 100 100 * @returns 0 and *pcb on success. … … 103 103 * @param pcb Where to put the value. 104 104 */ 105 int kldrHlpGetEnvUZ(const char *pszVar, size_t*pcb)106 { 107 size_tcb;105 int kldrHlpGetEnvUZ(const char *pszVar, KSIZE *pcb) 106 { 107 KSIZE cb; 108 108 unsigned uBase; 109 109 char szVal[64]; 110 size_tcchVal = sizeof(szVal);110 KSIZE cchVal = sizeof(szVal); 111 111 const char *psz; 112 112 int rc;
Note:
See TracChangeset
for help on using the changeset viewer.