From: vasudevram Date: 2006-07-14T15:55:05+09:00 Subject: Re: Good way to write a C extension to Ruby? Thanks for the answers, all - very helpful! >Maybe the OP could give us some more details about the nature of the extension... wrapping a library? defining methods that work with ruby Wrapping some simple C functions ... as a way to start learning how to write Ruby C extensions. Was thinking to do this with my selpg.c utility ( http://www-128.ibm.com/developerworks/opensource/library/l-clutil/ - see the Resources section at end of this URL) which is currently a standalone C program; I plan to cut out the main function, just wrap the core page-selecting logic in the process_input() function as a Ruby/C extension. The process_args() function could be rewritten in Ruby since all it does is argument checking. Thanks Vasudev Ram Business web site: http://www.dancingbison.com PDF conversion toolkit: http://sourceforge.net/projects/xtopdf ---------------------------------------------------------------------------�---------------