>If you don't wish to maintain two separate arrays, one of the namelist >and one of the currency short names, then Mathew's method would be > >easiest. >That is, > > snprintf(buf, sizeof(buf), "coins %s", currency_types[cur]); > obj->name = strdup(buf); That is so funny. I was just coming home from work and it hit me. "Why don't I put "coins %s" in the snprintf! :) Thanks for you help! --Ziz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT