Re: Win32lib additions [4]

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wed, 28 May 2003 19:03:56 -0500, <gertie at visionsix.com> wrote:

>
>
> On 29 May 2003, at 0:13, Derek Parnell wrote:
>
>>
>> Ok, I've added
>>
>> lstrcat
>> lstrcmp
>> lstrcmpi
>> lstrcpy
>> lstrcpyn
>> lstrlen
>
> What do they do? Euman? How to use?
>

These are 'Windows' versions of the equivalent standard C library 
functions. There work on zero-delimited bytes in RAM, which is how C 
expects strings to be stored.

 lstrcat(a,b)  -- Concatenates b onto a. Returns a.
 lstrcmp(a,b)  -- Compares a to b. Returns -1, 0, or 1.
 lstrcmpi(a,b) -- Case-insenstive compare.
 lstrcpy(a,b) -- Copies b to a, replacing a. Returns a.
 lstrcpyn(a,b,n) -- Copies b to a, but no more than n characters.
 lstrlen(a) -- returns length of a.

In each case above, 'a' and 'b' are RAM addresses. It is you responsibility 
to make sure that the buffer size is big enough for lstrcat and lstrcpy to 
work.

-- 

cheers,
Derek Parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu