~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/exist.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-06-07 16:49:57 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080607164957-8pifvb133yjlkagn
Tags: 3.3.0-3
* debian/rules (DEB_MAKE_CHECK_TARGET): Do not abort test suite on
  failures.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Set ${bindir} to /usr/lib/psi.
* debian/rules (install/psi3): Move psi3 file to /usr/bin.
* debian/patches/07_464867_move_executables.dpatch: New patch, add
  /usr/lib/psi to the $PATH, so that the moved executables are found.
  (closes: #464867)
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
  \file exist.c
 
3
  \ingroup (CHKPT)
 
4
*/
 
5
 
 
6
#include <stdio.h>
 
7
#include <stdlib.h>
 
8
#include "chkpt.h"
 
9
#include <libciomr/libciomr.h>
 
10
#include <libpsio/psio.h>
 
11
#include <psifiles.h>
 
12
 
 
13
/*!
 
14
** chkpt_exist(): Checks to see if entry already exists in chkpt file. Note
 
15
** this function should be called only by functions in the chkpt library, as
 
16
** the calling function prepends the prefix.
 
17
**
 
18
**   takes no arguments.
 
19
**  
 
20
**   returns: 1 if entry exists, 0 otherwise
 
21
**        
 
22
** \ingroup (CHKPT)
 
23
*/
 
24
 
 
25
int chkpt_exist(char *keyword)
 
26
{
 
27
  int exists=0;
 
28
 
 
29
  if (psio_tocscan(PSIF_CHKPT, keyword) != NULL)
 
30
    exists = 1;
 
31
 
 
32
  return exists;
 
33
}