From da2caced2209b7e60699790715ff84585864e37f Mon Sep 17 00:00:00 2001 From: Heitor Pascoal de Bittencourt Date: Tue, 8 Oct 2019 21:22:47 -0300 Subject: [c/en] Fix link for Learn C the Hard Way book --- c.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'c.html.markdown') diff --git a/c.html.markdown b/c.html.markdown index 7975a1c2..e5ffc379 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -10,6 +10,7 @@ contributors: - ["himanshu", "https://github.com/himanshu81494"] - ["Joshua Li", "https://github.com/JoshuaRLi"] - ["Dragos B. Chirila", "https://github.com/dchirila"] + - ["Heitor P. de Bittencourt", "https://github.com/heitorPB/"] --- Ah, C. Still **the** language of modern high-performance computing. @@ -820,7 +821,7 @@ Best to find yourself a copy of [K&R, aka "The C Programming Language"](https:// It is *the* book about C, written by Dennis Ritchie, the creator of C, and Brian Kernighan. Be careful, though - it's ancient and it contains some inaccuracies (well, ideas that are not considered good anymore) or now-changed practices. -Another good resource is [Learn C The Hard Way](http://c.learncodethehardway.org/book/). +Another good resource is [Learn C The Hard Way](http://learncodethehardway.org/c/). If you have a question, read the [compl.lang.c Frequently Asked Questions](http://c-faq.com). -- cgit v1.2.3 From bf1fe71a83a244dcfe36c543913829aaaf624f2e Mon Sep 17 00:00:00 2001 From: KoenigKrote Date: Fri, 21 Feb 2020 18:41:29 -0700 Subject: Rephrase variable declaration comments --- c.html.markdown | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'c.html.markdown') diff --git a/c.html.markdown b/c.html.markdown index e5ffc379..5b02390d 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -89,10 +89,12 @@ int main (int argc, char** argv) // Types /////////////////////////////////////// - // All variables MUST be declared at the top of the current block scope - // we declare them dynamically along the code for the sake of the tutorial - // (however, C99-compliant compilers allow declarations near the point where - // the value is used) + // Compilers that are not C99-compliant requires that variables MUST be + // declared at the top of the current block scope. + // Compilers that ARE C99-compliant allow declarations near the point where + // the value is used. + // For the sake of the tutorial, variables are declared dynamically under + // C99-compliant standards. // ints are usually 4 bytes int x_int = 0; -- cgit v1.2.3 From 842b247b74a81d8e00dab83875d1f5de15db3cc7 Mon Sep 17 00:00:00 2001 From: KoenigKrote Date: Fri, 21 Feb 2020 18:46:28 -0700 Subject: Requires -> Require --- c.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c.html.markdown') diff --git a/c.html.markdown b/c.html.markdown index 5b02390d..a57be1dc 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -89,7 +89,7 @@ int main (int argc, char** argv) // Types /////////////////////////////////////// - // Compilers that are not C99-compliant requires that variables MUST be + // Compilers that are not C99-compliant require that variables MUST be // declared at the top of the current block scope. // Compilers that ARE C99-compliant allow declarations near the point where // the value is used. -- cgit v1.2.3