Typescript Add Function In C