Skip to content

Instantly share code, notes, and snippets.

View timurey's full-sized avatar

Timur Taipov timurey

  • Ufa, Russian Federation
View GitHub Profile
@timurey
timurey / uri_parse.c
Created February 10, 2017 19:30
C uri parser
typedef struct {
char *schema;
char *username;
char *password;
char *host;
char *port;
char *path;
char *params;
}Uri;
#!/bin/bash
while [ "$1" != "" ]; do
case $1 in
-n | --projectname ) shift
projectname=$1
;;
-c | --config ) shift
config=$1
;;