[DGD]Re Need tips with LPC function Im writing.

MUD Account mud at hal9000.hal9000.net.au
Wed Mar 24 10:21:56 CET 1999


> Umm, we actually have strstr() and strchr() kfuns. We also have
>new_string(int lenght, int fillchar) and break_string() kfuns with color
>support, because I use these a lot.

Hmm these arent part of standard DGD surely?  I take it you mean
actually kfuns?

> Can you tell me where to find this, I would like to take a look on it?

Its in the package by Frank Schmidt, called MudOS4DGD.
Or MudOSa4DGD.  Got some useful functions - especially
in the string efuns.  And its got the sprintf() package.
Currently writing my own cut version.

> As does explode(find+str+find,find), extra separator to both ends of
>string to nullify effect of stripping in kfun? This is also done in 2.4.5
>simulation library.
> implode(explode(find+str+find,find),find) == str  ->  always true
> What's your point?
Dont know what his point was, but I thank you both for your response on 
this.
Your help has been of tremendous use.  My function now works,
although when I used it in my ansi colour daemon, it would cause an
"Out of ticks" error, when I went to use more to view a long file
that involved comments.  Reason being that comments of course use
"*/" and "/*", and I was using (but am not now) "*" as the hmm tag (for 
want of a better word) character for my ansi colours ie."*bold**red*Hi 
there*reset*".
Which in hindsight was kind of stupid.  Anyway, Im wondering if anyone can
tell me exactly what that error means, and how I can avoid it (besides 
becoming a better LPC coder :P).  Im willing to post any functions to be 
pulled apart, as I think I need some tips on LPC, and as Im the only 
coder working on this project, I dont have anyone I can get tips off of 
:)  Im thinking my background in C is possibly hurting the speed of any 
functions Im writing. Anyway, thanks for your time, and thanks for your 
responses. Take care,

Jazz

|- mud at hal9000.net.au -|oOoOoOoOoOoOoOoOoOoOoOoOoOoOo...............

List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list