> Actually, the bytes should probably be allocated in the structure,
> right?
> 
>   struct ipv4_addr_struct {
>     C_header tag;
>     uint8_t octets[4];
>   };
>   typedef struct ipv4_addr_struct ipv4_addr;
> 
>   static const C_header BTREE_TAG =
>     ((sizeof(ipv4_addr) - sizeof(C_header)) /
>     sizeof(C_word)) | C_BYTEVECTOR_TYPE;

This would be a "blob" (or bytevector), right.


cheers,
felix

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to