strupr question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

strupr question

911 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kemes on Sat Mar 16 09:24:36 MST 2013
I am compiling a code that employ the strupr function.  I included the header <string.h>, but the compiler gives an error (undefined reference to strupr ).
The strange is that the strcpy is not signaled as an error.  Can anyone knows which settings I should set ?
Thanks
0 Kudos
Reply
2 Replies

862 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frame on Sun Mar 17 03:58:20 MST 2013
If you need just a few clib functions, it might be worth to rewrite them
with just the functionality you need, instead of including a library,
even a reduced one like newlib.
It could save you a lot of code space, and avoid the step to a bigger,
more expensive MCU - if this makes a difference to you.
0 Kudos
Reply

862 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Sat Mar 16 10:02:01 MST 2013
Try Newlib ;)

http://www.support.code-red-tech.com/CodeRedWiki/RedlibAndNewlib
0 Kudos
Reply