Category : Files from Magazines
Archive   : CUJ0894.ZIP
Filename : STRQ3.CPP

 
Output of file : STRQ3.CPP contained in archive : CUJ0894.ZIP
Listing 5 - non-inline member-function definitions for a type-safe queue
of str wrapped around a genq

//
// strq3.cpp - a type-safe wrapper for a queue of str
// wrapped around a genq
//

#include "strq3.h"

void strq::clear()
{
void *p;
while (gq.remove(p))
delete (str *)p;
}

int strq::remove(str &e)
{
void *p;
int rv = gq.remove(p);
if (rv)
{
e = *(str *)p;
delete (str *)p;
}
return rv;
}


  3 Responses to “Category : Files from Magazines
Archive   : CUJ0894.ZIP
Filename : STRQ3.CPP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/