added c extern snippets