2,647 karma · joined March 24, 2012
http://www.reddit.com/r/linux/comments/2hoffe/weev_stop_bash...
If it works without problems for your data, good for you, but for general purpose it isn't nearly a replacement as fscanf() or strtod() (hopefully) work correctly and don't have weird limitations like 300 / -300 as max / min base 10 exponent. Parsing floating point numbers is not easy.
http://port70.net/~nsz/c/c11/n1570.html#7.27.1p3
http://port70.net/~nsz/c/c11/n1570.html#7.27.2.5
There are some differences though. Not only the name and types differ. But also `timespec_get` is only required to support `TIME_UTC` and the specification is not as detailed.
The upcoming version has it.
http://www.bbc.com/news/science-environment-22567526 (animation)
http://www.bbc.com/news/science-environment-22821639 (actual article)
The accompanying documentation can be found on YouTube: https://www.youtube.com/watch?v=JPthfv1XL_w
>by taking an existing pointer to one type and casting it so that it becomes a pointer to an entirely different type. It isn't that easy, but it's well-defined as long as both pointers are compatible and identically qualified.
Yes, there are some features that Clang doesn't implement at the moment or never will (GCC has some really bizarre extensions and is sometimes less strict), but there is also a great amount caused by bad code.
I can't come up with a better alternative, though.
I originally wanted to write more and point out some other important things. For example, “long long” never gets mentioned! This is not a good book to learn C. I believe it could be an adequate (or even good) one to train already existent C skills, but it isn't even that at the moment.
Okay, it isn't a final version. We have to wait until next year for that, but LCTHW gets too much positive attention for being just another less-than-mediocre tutorial book on the Internet.
But the code is neither ISO C99 nor C11. It uses a GNU C extension called “statement expressions”, which is not supported by MSVC.
Also, its preprocessor has quite a few problems. I think after removing statement exprs and running the code through a different PP, MSVC will compile it.
Of course, one could just simply use MinGW or Clang instead.
Even the original implementation did that:
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/libc...
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/libc...
He's wrong.
>Thompson went a step further by inventing the ++ and -- operators, which increment or decrement; their prefix or postfix position determines whether the alteration occurs before or after noting the value of the operand. They were not in the earliest versions of B, but appeared along the way. People often guess that they were created to use the auto-increment and auto-decrement address modes provided by the DEC PDP-11 on which C and Unix first became popular. This is historically impossible, since there was no PDP-11 when B was developed. The PDP-7, however, did have a few `auto-increment' memory cells, with the property that an indirect memory reference through them incremented the cell. This feature probably suggested such operators to Thompson; the generalization to make them both prefix and postfix was his own. Indeed, the auto-increment cells were not used directly in implementation of the operators, and a stronger motivation for the innovation was probably his observation that the translation of ++x was smaller than that of x=x+1.
>* For C++11 conformance, we're interested in implementing the C99 Standard Library
Source: https://connect.microsoft.com/VisualStudio/feedback/details/...
Source: https://bugs.ruby-lang.org/issues/6265
Btw, PRI_LL_PREFIX is defined in Ruby's config.h.
You don't have to. The 2nd argument is optional and defaults to IO::SEEK_SET. (Source: http://www.ruby-doc.org/core-1.9.3/IO.html#method-i-seek)
The optimal sizes are the same as the author's but 24x24 px. is missing in the recommended size list.
The site links to a blog entry about Pinned Sites in Win8. You can re-use the 144x144 px. PNG for a pinned site.
So opening instead of downloading is possible by using an extension. Perhaps an extension already exists which does that without any other features.