Re: Re: storing values in typedef struct error.
jima <jima-3OvB8YfVQ3W/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Scott, this is Jim Ashby I meet you at the only Rabbit Developers Conference I had ever attended a few years ago. I have a client which has code which only runs properly under DEC 8.10. Weird I know. Xmem, root memory errors if compiled in any other version. What I need to know is if you have a copy of the CDROM of DC 8.10. All the client could supply to me was a copy of the director where the install was completed to. But I am having issues with the program not functioning correctly, especially during debug mode. I do have the DC 8.01 installation CDROM, but it does not compile under 8.01. If you do have the CDROM available, would it be a big deal to get me a copy. I may also need an installation key code as well. If you are able to help I would appreciate it. If you are not willing to assist, please let me know so I can move onto my next resource. I am no longer receiving referrals from Digi for Rabbit product, I do not know whats going on with them. Jim Ashby President, CEO IDE Solutions, LLC 1028 S 770 E Saint George, UT 84790 Office: (435) 767-0957 Cell (435) 619-5333 On 5/22/2013 10:43 AM, Scott Henion wrote: On 5/22/2013 12:23 PM, racqueldesign wrote: > Hi Tom, > > Thanks; however I place the below code after each time a string is store: > device.mc1[8] = (char) NULL; > which is now: > > _f_strncpy(device.mc1,src, 8); > device.mc1[8] = (char) NULL; // '\0' > > the output is still the same. I even declare as type far (far mc_t device)and that was even worst, the output is garbage. >>device.mc1[8] = (char) NULL; You are storing a null in the 9th char of an 8-char array that just happens to be the first char of .mc2 You need to make the arrays larger to hold the null. -- ------------------------------------------ Scott G. Henion, Consultant Web site: http://SHDesigns.org ------------------------------------------ __._,_.___ Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6) Recent Activity: - New Members 1 Visit Your Group http://groups.yahoo.com/;_ylc=X3oDMTJkZXYyZnJ0BF9TAzk3NDc2NTkwBGdycElkAzIzMDczMTYEZ3Jwc3BJZAMxNzA2NTU0MjA1BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzczMjI3NzEy Switch to: Text-Only , Daily Digest • Unsubscribe • Terms of Use • Send us Feedback . __,_._,___