Coder Social home page Coder Social logo

IN_STR method missing on array about mlib HOT 5 CLOSED

p-p-h-d avatar p-p-h-d commented on May 14, 2024
IN_STR method missing on array

from mlib.

Comments (5)

mario-tux avatar mario-tux commented on May 14, 2024

I'm noting that the documentation usually reports wrong prototypes for the _in_str methods: the destination container is sometimes reported as second element (maybe a copy&paste from _out_str) and, other times, with the const specification.

from mlib.

P-p-H-d avatar P-p-H-d commented on May 14, 2024

I see a bug in your example. You shall write:
my_list_in_str(list2, file);
once I fix this, your example compiles & runs fine.
All functions have the out parameter first. The documentation is wrong; it shall be:
void name_in_str(name_t array, FILE *file)

C native types do not support generic IN_STR method yet!

from mlib.

mario-tux avatar mario-tux commented on May 14, 2024

Ok, documentation fooled me me on first glance. You can keep this report as request for C native types support and for documentation fix.

from mlib.

P-p-H-d avatar P-p-H-d commented on May 14, 2024

Both have been taken in master.

Good luck for your project!

from mlib.

mario-tux avatar mario-tux commented on May 14, 2024

On some early tests it looks that the _get_str methods for C native types work well. Thank you.

from mlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.