Quoth Manas Agarwal [EMAIL PROTECTED]: > I have been trying to run executables on SH2 uitron board > using linux 2.0.x. I have used m68k-elf2flt tool and > successfully built an executable. However the application is > giving garbage output when I try to run write on character pointers. > For eg > > Char *p="hello"; > char *q="world"; > write(1,p,5) prints hello > however > write(1,q,5) prints hello too > > Also when I tried write(1,q+5,5) it prints world.
You should probably post a complete code sample. _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
