source: gaycko/src/helpers/str.c @ 4716

Last change on this file since 4716 was 4716, checked in by Jean-Yves Lamoureux, 9 years ago
  • Initial commit -This line, and those below, will be ignored--

A gaycko/tests
A gaycko/tests/lnx.html
A gaycko/tests/html.html
A gaycko/tests/simple.html
A gaycko/configure.ac
A gaycko/src
A gaycko/src/dom
A gaycko/src/dom/dom.c
A gaycko/src/dom/dom.h
A gaycko/src/helpers
A gaycko/src/helpers/str.c
A gaycko/src/helpers/str.h
A gaycko/src/gaycko.h
A gaycko/src/parsing
A gaycko/src/parsing/parse.h
A gaycko/src/parsing/parse.c
A gaycko/src/io
A gaycko/src/io/file.c
A gaycko/src/io/http.c
A gaycko/src/io/file.h
A gaycko/src/io/http.h
A gaycko/src/io/io.c
A gaycko/src/io/io.h
A gaycko/src/Makefile.am
A gaycko/src/gaycko.c
A gaycko/Makefile.am
AM gaycko/bootstrap

File size: 293 bytes
Line 
1#include "str.h"
2#include <string.h>
3
4
5void strip_eol(char *str) {
6        int s = strlen(str)+1;
7    int i;
8   
9    for(i = 0; i < s; i++) {
10        if(str[i] == 10 ||
11           str[i] == 13) str[i] = ' ';
12    }
13   
14}
15
16void strip_spaces(char *str) {
17        int s = strlen(str)+1;
18   
19    (void)s;
20   
21
22}
Note: See TracBrowser for help on using the repository browser.