Re: advantage of using typedefs
- From: Jordan Abel <random832@xxxxxxxxx>
- Date: 28 Jan 2006 23:48:29 GMT
On 2006-01-28, junky_fellow@xxxxxxxxxxx <junky_fellow@xxxxxxxxxxx> wrote:
> I was looking at the source code of linux or open BSD. What I found
> that lots of typedefs
> were used. For example, consider the offset in a file. It was declared
> as
> off_t offset;
> and off_t is typedefed as
> typedef long off_t;
On your system. On my system it's long long.
>
> I wanted to know what advantage do we get by typedefs ? Why we did not
> declare
> offset simply as
> long off_t;
>
> Similar is the case with size of file and so on.....
>
> Does any one has any clue of why do we use typedefs in such cases ?
>
> Thanx for any help advance ....
>
.
- References:
- advantage of using typedefs
- From: junky_fellow@xxxxxxxxxxx
- advantage of using typedefs
- Prev by Date: Re: How to find the depencies among files in a project
- Next by Date: Re: advantage of using typedefs
- Previous by thread: Re: advantage of using typedefs
- Next by thread: Re: advantage of using typedefs
- Index(es):
Relevant Pages
|