Re: unicode and puts -- exwc
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Jun 06, 2007
- 470 views
FD(censored) wrote: > > Something like that should work fine, problem is I develop with Apache2 on > Windows > XP, then upload at intervals to my server which runs linux (I found the trick > of copying exu into a global path directory on windows and renaming it exu, > so all my scripts will run on windows with the shebang line #!./cgi-bin/exu) > > I'm still waiting for the linux/BSD release of the new Euporia so I'm not > rushed... > Is there any quicker way to do it in linux also? > > I'll have to experiment with that code in the morning as its 2am > Here's code that works in linux. I'll leave it to you to wrap it all into platform() calls to make the code cross platform...
include dll.e constant lib = open_dll(""), putchar_ = define_c_proc( lib, "putchar", {C_INT}) procedure binputs( sequence data ) sequence ret ret = {} for i = 1 to length(data) do c_proc( putchar_, {data[i]}) end for end procedure binputs("abc" & 0 & "def\n" )
Matt