All pastes #592462 Raw Edit

Mine

public c v1 · immutable
#592462 ·published 2007-06-27 19:45 UTC
rendered paste body
char *ext, *end;ext = ast_strdupa(peer->name);ext = strchr(ext, '/') + 1;if ((end = strchr(ext, '-')))    *end = '\0';