> if you want to avoid any licensing or copyright, it has to be a "clean" > room rewrite. which means not looking at the code. at all. not even as > a reference. Preferably you would do even more than that.. you would implement a different function to relieve any temptation -- ideally, you do want to do it in a better way than what you're rewriting so you aren't just wasting time. Or you could just write the function with pencil and paper then transcribe later :) "Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction which doesn't work." Suppsoe you were rewriting 'send_to_char' You might instead name it 'ch_printf' for example int ch_printf(struct char_data *ch, const char *fmt, ...) { va_list ap; va_start(ap, fmt); ... } or you might name it send_to_ch void send_to_ch(struct char_data *, const char *stuff); And one might make it automatically include the trailing \r\n while they're at it! <chuckle> It's a different story, however, if you're re-implementing a library or working with a large program like circle, for example -Mysid -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST