Re: [Vala] BUFSIZ



On Wed, Nov 24, 2010 at 10:17:37 +0800, Ervin wrote:
How can i use BUFSIZ from stdio.h?

Just declare it extern somewhere. I believe

    namespace Posix {
        [CCode(cname = "BUFSIZ", cheader_filename = "stdio.h")]
        public extern const int BUFSIZ;
    }

should do the trick.

-- 
                                                 Jan 'Bulb' Hudec <bulb ucw cz>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]