lkml.org 
[lkml]   [1999]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Strange piece of code
Date
Giovanni Picoli Tirloni writes the following:
>
>int
>ppp_init (struct device *dev)
>{
> static int first_time = 1; <== define to 1
^^^^^^
> int answer = 0;
>
> if (first_time) { <== check if is 1, why ? any special special reason?
> first_time = 0;

Please look up the meaning of "static" in your C book.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.049 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site