File: raw.c

package info (click to toggle)
squizz 0.99b%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,648 kB
  • ctags: 8,291
  • sloc: sh: 12,012; ansic: 2,607; lex: 1,944; yacc: 1,659; makefile: 119
file content (48 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (5)
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
/* raw.c - RAW sequence functions */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>

#include "sequence.h"
#include "sequence/raw.h"


/* Functions prototypes */
extern sequence_t *rawy_parse(FILE *);
extern int rawy_check(FILE *);


/* Parse RAW sequence */
sequence_t *raw_parse(FILE *f) {
  sequence_t *seq;

  seq = rawy_parse(f);

  return seq; }


/* Checks RAW sequence */
int raw_check(FILE *f) {
  int i;

  i = rawy_check(f);

  return i; }


/* Print RAW sequence */
void raw_print(FILE *f, sequence_t *seq) {
  char *p;

  if (seq == NULL) { return; }

  p = seq->str;
  while (*p) {
    (void)fputc(*p, f);
    p++; }
  (void)fputc('\n', f);

  return; }