Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When compiling with LegOS, strncat and strncpy cause the link to fail. Why?

cause compiling fail link
0
0 Posted

When compiling with LegOS, strncat and strncpy cause the link to fail. Why?

0
0

LegOS (necessarily) provides a stripped down version of the C string libraries. strncat and strncpy are not defined by LegOS. However, strcat and strcpy are. Change the archetype sys_mechs.arc to use these simpler (although more dangerous) versions of string functions. Note that in version 3.0 of MC-3020, the string library function calls have been eliminated. Native C is used throughout.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123