Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • char *path;
    sprintf( path, "%s/%s/%s", x, y, z );
    mysub( key, path );
    • So, you want to poke some random part of your program with a m/d/y string? Whoo hoo! I think you wanted:
      char path[1024];
      sprintf ( path ... );
      And yes, the fixed size buffer there is the root of all evilness of C programs.
      • Randal L. Schwartz
      • Stonehenge
      • I'm in the UK, so it would have been a d/m/y string if that was the case ;) I only use x/y/z just as an example, that doesn't resemble the real string I was formatting. You are quite right about fixed size buffers, I was only using a pointer to indicate a string. Makes me realise how lucky we are programming Perl :)