source: vendor/emx/current/src/pmgdb/capture.cc

Last change on this file was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1/* capture.cc
2 Copyright (c) 1996 Eberhard Mattes
3
4This file is part of pmgdb.
5
6pmgdb is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11pmgdb is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with pmgdb; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20
21
22#include <os2.h>
23#include <string.h>
24#include "capture.h"
25
26
27void capture_string::set (const char *s, size_t len)
28{
29 str = new char[len + 1];
30 memcpy (str, s, len);
31 str[len] = 0;
32}
33
34
35void delete_capture (capture *p)
36{
37 while (p != NULL)
38 {
39 capture *next = p->next;
40 delete p;
41 p = next;
42 }
43}
Note: See TracBrowser for help on using the repository browser.