Register - Login
Views: 99413482
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-25-22 12:25:49 AM
Jul - Innocent Town - C99 New poll - New thread - New reply
Next newer thread | Next older thread
Joe
Common spammer
🍬
Level: 111


Posts: 1986/3392
EXP: 14490019
For next: 378341

Since: 08-02-07

From: Pororoca

Since last post: 4 days
Last activity: 4 hours

Posted on 04-14-11 04:20:55 PM Link | Quote
In my class, we're supposed to be learning C99. Okay, let's do some C99.


#include <inttypes.h>

#include <stdlib.h>
#include <stdio.h>

int main(void)
{
uint64_t test_value = 18446744073709551615;
printf("%" PRIu64, test_value)
return EXIT_SUCCESS;
}



GCC accepts this with little more than a "hey that might mess up if your variable is signed" warning.

Our compiler, Visual C++.Net 2010, doesn't even claim to support C99. :specialed:

____________________
Rick
M'Lord, there's a knife in your head!
Level: 152


Posts: 3667/7539
EXP: 43672556
For next: 629104

Since: 02-15-10

From: Maine

Since last post: 114 days
Last activity: 46 days

Posted on 04-14-11 08:47:48 PM Link | Quote
Only computer programming can make sense and not make sense at the same time.

At least this is my own observation.

____________________
Nicole

Disk-kun
Level: 146


Posts: 3356/6469
EXP: 38255502
For next: 257792

Since: 07-07-07

Pronouns: she/her
From: Boston, MA

Since last post: 70 days
Last activity: 2 days

Posted on 04-14-11 08:49:59 PM Link | Quote
Well, of course, Visual Studio 2010 only supports C10. Unfortunately, MS missed that in its Y2k planning, so you'll have to wait until 2099 to get C99.

____________________
Next newer thread | Next older thread
Jul - Innocent Town - C99 New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

29 database queries.
Query execution time:  0.083303 seconds
Script execution time:  0.006190 seconds
Total render time:  0.089493 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 2 column 259 - Warning: unescaped & or unknown entity "&page"
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 148 column 37 - Warning: unescaped & or unknown entity "&id"
line 147 column 165 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 91 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 177 column 102 - Warning: unescaped & or unknown entity "&postid"
line 179 column 74 - Warning: <style> isn't allowed in <td> elements
line 179 column 9 - Info: <td> previously mentioned
line 197 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 199 column 9 - Warning: missing <tr>
line 217 column 13 - Warning: missing <tr>
line 218 column 102 - Warning: unescaped & or unknown entity "&postid"
line 225 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 227 column 9 - Warning: missing <tr>
line 245 column 13 - Warning: missing <tr>
line 246 column 102 - Warning: unescaped & or unknown entity "&postid"
line 251 column 17 - Warning: missing <tr>
line 251 column 17 - Warning: discarding unexpected <table>
line 254 column 35 - Warning: missing <tr>
line 254 column 50 - Warning: missing </font> before </td>
line 254 column 91 - Warning: missing </font> before </table>
line 256 column 35 - Warning: missing <tr>
line 256 column 50 - Warning: missing </font> before </td>
line 257 column 37 - Warning: unescaped & or unknown entity "&id"
line 256 column 165 - Warning: missing </font> before </table>
line 258 column 17 - Warning: discarding unexpected </textarea>
line 258 column 28 - Warning: discarding unexpected </form>
line 258 column 35 - Warning: discarding unexpected </embed>
line 258 column 43 - Warning: discarding unexpected </noembed>
line 258 column 53 - Warning: discarding unexpected </noscript>
line 258 column 64 - Warning: discarding unexpected </noembed>
line 258 column 74 - Warning: discarding unexpected </embed>
line 258 column 82 - Warning: discarding unexpected </table>
line 258 column 90 - Warning: discarding unexpected </table>
line 260 column 9 - Warning: missing </font> before <table>
line 272 column 25 - Warning: discarding unexpected </font>
line 281 column 37 - Warning: discarding unexpected </font>
line 259 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 148 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 161 column 23 - Warning: <img> lacks "alt" attribute
line 161 column 64 - Warning: <img> lacks "alt" attribute
line 161 column 113 - Warning: <img> lacks "alt" attribute
line 161 column 163 - Warning: <img> lacks "alt" attribute
line 162 column 11 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 202 column 23 - Warning: <img> lacks "alt" attribute
line 202 column 64 - Warning: <img> lacks "alt" attribute
line 202 column 113 - Warning: <img> lacks "alt" attribute
line 202 column 163 - Warning: <img> lacks "alt" attribute
line 203 column 11 - Warning: <img> lacks "alt" attribute
line 213 column 15 - Warning: <img> lacks "alt" attribute
line 220 column 152 - Warning: <img> proprietary attribute value "absmiddle"
line 220 column 152 - Warning: <img> lacks "alt" attribute
line 222 column 279 - Warning: <img> lacks "alt" attribute
line 229 column 11 - Warning: <img> lacks "alt" attribute
line 230 column 23 - Warning: <img> lacks "alt" attribute
line 230 column 64 - Warning: <img> lacks "alt" attribute
line 230 column 113 - Warning: <img> lacks "alt" attribute
line 230 column 163 - Warning: <img> lacks "alt" attribute
line 231 column 11 - Warning: <img> lacks "alt" attribute
line 241 column 15 - Warning: <img> lacks "alt" attribute
line 257 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 257 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 257 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 266 column 25 - Warning: <img> lacks "alt" attribute
line 271 column 267 - Warning: <img> lacks "alt" attribute
line 149 column 50 - Warning: trimming empty <font>
line 251 column 17 - Warning: trimming empty <tr>
line 254 column 50 - Warning: trimming empty <font>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
line 218 column 27 - Warning: <nobr> is not approved by W3C
line 246 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 93 warnings and 0 errors!


The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md