eccLib 1.1.0
Python library for bioinformatics written in C
Loading...
Searching...
No Matches
Functions
common.c File Reference

Contains implementations for common functions and structs used by the other modules. More...

#include "common.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for common.c:

Functions

int strtok_ri (const char *restrict str, char delim, Py_ssize_t *restrict strLen, occurrence_t *restrict lastoccurrence)
 Version of strtok_r that doesn't modify the original string.
 
void percent_encode_char (char *restrict out, char c)
 Writes a percent encoded character to a buffer.
 
uint32_t strncount (const char *restrict str, char c, size_t len)
 Counts the number of occurrences of c in str.
 
void * memchr2 (const void *buf, int c1, int c2, size_t len)
 Finds the first occurrence of either c1 or c2 in buf.
 

Detailed Description

Contains implementations for common functions and structs used by the other modules.