|
Last change
on this file was 18, checked in by bird, 23 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 |
|
|---|
| 4 | This file is part of pmgdb.
|
|---|
| 5 |
|
|---|
| 6 | pmgdb is free software; you can redistribute it and/or modify
|
|---|
| 7 | it under the terms of the GNU General Public License as published by
|
|---|
| 8 | the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 9 | any later version.
|
|---|
| 10 |
|
|---|
| 11 | pmgdb is distributed in the hope that it will be useful,
|
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 14 | GNU General Public License for more details.
|
|---|
| 15 |
|
|---|
| 16 | You should have received a copy of the GNU General Public License
|
|---|
| 17 | along with pmgdb; see the file COPYING. If not, write to
|
|---|
| 18 | the Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 19 | Boston, MA 02111-1307, USA. */
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | #include <os2.h>
|
|---|
| 23 | #include <string.h>
|
|---|
| 24 | #include "capture.h"
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | void 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 |
|
|---|
| 35 | void 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.