Sha256: 8b5c883b93d0df25641cae3c15a5578bb2dfa6965362419b931e56ff2cdd0e28
Contents?: true
Size: 891 Bytes
Versions: 69
Compression:
Stored size: 891 Bytes
Contents
/* * mkdio -- markdown front end input functions * * Copyright (C) 2007 David L Parsons. * The redistribution terms are provided in the COPYRIGHT file that must * be distributed with this source code. */ #include "config.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include "mkdio.h" #include "cstring.h" #include "amalloc.h" static char * e_basename(const char *string, const int size, void *context) { char *ret; char *base = (char*)context; if ( base && string && (*string == '/') && (ret=malloc(strlen(base)+size+2)) ) { strcpy(ret, base); strncat(ret, string, size); return ret; } return 0; } static void e_free(char *string, void *context) { if ( string ) free(string); } void mkd_basename(MMIOT *document, char *base) { mkd_e_url(document, e_basename); mkd_e_data(document, base); mkd_e_free(document, e_free); }
Version data entries
69 entries across 63 versions & 8 rubygems