1. A method for calling a function in a function-oriented programming language (C), where the function expects a structure as a parameter, from an object-oriented programming language (JAVA), where the fields of the structure have associated corresponding classes in JAVA, having the following steps: a character string describing the structure is provided in a format string, recursive calling of a serialization method (toX) removes the contents of the fields used in the structure and stores them in a data string in an order corresponding to the format string, a packing function converts the data string into a memory map of the structure using the format string, the function in the function-oriented programming language is called using the memory map as a parameter for the structure.