On Thu, 13 Aug 2009 07:18:28 +0200 (CEST) Vincent Torri <vto...@univ-evry.fr>
said:

well returning the time with a 0 date (invalid) is better than nothing, but it
won't fail - the format is a fixed format always the same according to the docs.

> On Wed, 12 Aug 2009, Enlightenment SVN wrote:
> 
> > +        fields = sscanf(_eina_hamster_time, "%02i:%02i:%02i", &hrs, &min,
> > &sec);
> > +        if (fields == 3)
> > +          {
> > +             _eina_hamsters = (hrs * 60) + min;
> > +             fields = sscanf(_eina_hamster_date, "%s %i %i", mon, &day,
> > &year);
> > +             if (fields == 3)
> > +               {
> 
> [snip]
> 
> > +               }
> 
> shouldn't we return 0 in case the second test fails ?
> 
> > +          }
> > +     }
> > +   // format: [rest - year][0-12 - month][0-31 - day][0-23 - hrs][0-59 -
> > sec] return _eina_hamsters;
> > }
> 
> Vincent
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to