lua-users home
lua-l archive

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


On Wed, Jan 10, 2001 at 04:08:55PM +0200, Max Ischenko wrote:
> 
> I'm implementing C wrapper around pidof command.

<snip>

> In lua i wrote
> t = {}
> s = pidof('rxvt')
> gsub(s, '(%S+)', function (str) tinsert(%t, str) end)
> 
> How can rewrote it in C?

Which version of Lua are you using?  The method can change somewhat
between versions.

-- 
Rob Kendrick - http://www.digital-scurf.org/
Good news from afar can bring you a welcome visitor.