{#set apath#}
Set hooks are formed in the same way as get hooks, but yield a function that assigns a value to a member of a C structure. These functions expect a pointer to the structure as the first and the value to be assigned as the second argument. For example, we may have
{#set sockaddr_in.sin_family#} addr_in (cFromEnum AF_NET)