This file is indexed.

/usr/include/genometools/core/cstr_api.h is in libgenometools0-dev 1.5.9+ds-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
  Copyright (c) 2006-2008 Gordon Gremme <gordon@gremme.org>
  Copyright (c)      2012 Sascha Steinbiss <steinbiss@zbh.uni-hamburg.de>
  Copyright (c) 2006-2012 Center for Bioinformatics, University of Hamburg

  Permission to use, copy, modify, and distribute this software for any
  purpose with or without fee is hereby granted, provided that the above
  copyright notice and this permission notice appear in all copies.

  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#ifndef CSTR_API_H
#define CSTR_API_H

#include <stdio.h>
#include "core/types_api.h"

/* Cstr module */

/* Creates a duplicate of string <cstr> using the __GenomeTools__ memory
   allocator. */
char*   gt_cstr_dup(const char *cstr);

/* Splits the \0-terminated <cstr> at all positions where <sep> occurs and
   returns a C string array in which each element is a separate string between
   the occurrences of <sep>. The string array is terminated by NULL. The caller
   is responsible to free the result. */
char**  gt_cstr_split(const char *cstr, char sep);

/* Creates a duplicate of string <cstr> using the __GenomeTools__ memory
   allocator. The string needs not be \0-terminated, instead its <length> must
   be given. */
char*   gt_cstr_dup_nt(const char *cstr, GtUword length);

/* Replace each occurrence of <f> in <cstr> to <t>. */
void    gt_cstr_rep(char *cstr, char f, char t);

/* Outputs the first <length> characters of the string <cstr> to file pointer
   <outfp>. */
void    gt_cstr_show(const char *cstr, GtUword length, FILE *outfp);

/* Returns the length of the prefix of <cstr> ending just before <c>, if <cstr>
   does not contain <c>, strlen(cstr) is returned. */
GtUword gt_cstr_length_up_to_char(const char *cstr, char c);

/* Removes all occurrences of <remove> from the right end of <cstr>. */
char*   gt_cstr_rtrim(char* cstr, char remove);

#endif