Nomead Yltsaeb wrote: > > > > for (;;) { > > > for (curstr = str;; curstr++, curname++) { > > > - if (!*curstr) > > > + if (!*curstr && !isalpha(*curname)) > > > return (1); > > You mean... I have to put a Minus sign in the place of the plus sign, and > vice-versa? Yes and no. These signs guides you on changing your source code, but *they aren't* part of the code. When you see: for (;;) { for (curstr = str;; curstr++, curname++) { - if (!*curstr && !isalpha(*curname)) + if (!*curstr) return (1); Means that you needs to remove (-) the line containing: if (!*curstr && !isalpha(*curname)) and insert (+) in the same place a line containing: if (!*curstr) Then, the original code is: for (;;) { for (curstr = str;; curstr++, curname++) { if (!*curstr && !isalpha(*curname)) return (1); and it will became: for (;;) { for (curstr = str;; curstr++, curname++) { if (!*curstr) return (1); Give a look at the following URLs, they will give you more help about diffs and patches: http://developer.circlemud.org/patches/handpatch.html http://developer.circlemud.org/documentation/faq/FAQ-2.html#ss2.7 Cya. -- ----=[ Juliano Ravasi Ferraz ]=----=[ jferraz@linkway.com.br ]=---- Rayon Eletrônica e Informática Ltda. - Linkway Descalvado Recovery program for excessive talkers: On-and-on-Anon. +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/11/01 PDT