Link to home
Start Free TrialLog in
Avatar of pwiginton
pwiginton

asked on

ÌÌÌÌÌÌÌÌÌÌ characters in string C programming

I am maintaining some old C programs using BTrieve databases.  When I move the contents of a database field into a string, it is padded with  ÌÌÌÌÌÌÌÌÌÌ characters at the end of the string.  What are these and how can I get rid of them.  I am moving the 50 character database field to a string array of 51 characters using the strncpy command.
strncpy(strLongName, MhfsHdr.LongName, 50);
trim(strLongName);
strcpy(CompanyName, strLongName);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial