Hao Xu <> writes:
> I think that everyone knows ctime() in glibc:
Well, everyone here knows about the ctime() function defined by the C
standard.
[snip]
> Now I need to use the function of ctime() in linux kernel, but it
> seems that I cannot access ctime() in the linux kernel, right?
No idea.
> So I have to reimplement ctime() in the linux kernel. I found that
> the algorithm of glibc ctime() is very complex, I don't understand
> it. Does anyone has any good ideas about how to implement ctime()?
Not here. If you have a working implementation, you might be able to
just copy it into your code, whether you understand the algorithm or
not. If that doesn't work, you'll need to try a Linux-specific
programming group.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.