lua-users home
lua-l archive

Re: Lua and C strings

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I don't know what causes your problem, but first a few points:
> output:write(name1, "0円\n")
if you want to add a NULL char at the end (for C benefit), put it at the end.
> about the same as my Lua level. For example, if "name1" were X'6162630A0D'
> (as verified with a hex editor), should this instead be X'616263000A0D'?
the end of line in DOS-derived systems is 0D0A, not 0A0D
and, lastly; i think Oliver's comment is spot-on: the problem is
likely on your C-side parsing code.
-- 
Javier

AltStyle によって変換されたページ (->オリジナル) /