Inverted Index: Partioning/Sharding App
This commit is contained in:
6
idxseg.c
6
idxseg.c
@ -31,6 +31,12 @@
|
|||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
|
|
||||||
|
#ifndef min
|
||||||
|
#define min(x,y) (((x)<(y)) ? (x) : (y))
|
||||||
|
#define max(x,y) (((x)>(y)) ? (x) : (y))
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned argtoi(char *s) {
|
unsigned argtoi(char *s) {
|
||||||
char *p; unsigned n = strtol(s, &p, 10),f=1;
|
char *p; unsigned n = strtol(s, &p, 10),f=1;
|
||||||
switch(*p) {
|
switch(*p) {
|
||||||
|
Reference in New Issue
Block a user