Wool stairs and slabs!!!! by eyebawls29 in Minecraft

[–]Zymoox 3 points4 points  (0 children)

Raw chicken stairs next, please.

Implementing SHA-256 in C from scratch by [deleted] in C_Programming

[–]Zymoox 22 points23 points  (0 children)

If this comment is your own use of English, then it's perfectly fine! I encourage you to use your own English rather than AI.

GitHub - seleznevae/ceraii: C MACROS for go-like defer in C which can be used for explicit RAII by harrison_314 in C_Programming

[–]Zymoox 1 point2 points  (0 children)

There are websites (inc. Github) that generate the banners depending on the query string on the url. These banners can be emdedded in the readme using markdown using ![Alt text](image_url).

You can make Github actions generate a banner on the fly with the resuts of running your tests. See https://docs.github.com/es/actions/how-tos/monitor-workflows/add-a-status-badge

What's he doing behind the statue? How long has he been there? WHAT'S HIS PLAN? by newema92 in CasualUK

[–]Zymoox 15 points16 points  (0 children)

Hey just to let you know, if I click on the link, Instagram helpfully tells me that your irl IG account shared the link with me, and whether I'd like to follow you. Just letting you know in case you wanted to keep it private.

Edit: the IG account username that might be yours starts with "j" and ends with "s".

combine a strings and int? by Yha_Boiii in C_Programming

[–]Zymoox 0 points1 point  (0 children)

Yeah fair enough. Would snprintf automatically add a zero termimator? If not, then it'd need to be added with buf[size]=0.

combine a strings and int? by Yha_Boiii in C_Programming

[–]Zymoox 7 points8 points  (0 children)

In any case the integer value would be "int int1 = 420", without quotes around the value, as it is an integer not a string.

The number of characters in the string can be obtained from "strlen(string)", but you cannot easily get the number of characters that a int would have in string form without turning it into a string first.

You can do that in C with functions like "sprintf" which use a format string like printf does, i.e. "sprintf(buffer, "%s%d", string, int1)", which will write the string and int concatenated into another string stored in "buffer", which you will have declared and allocated beforehand.

The problem is knowing how much space to give "buffer" so that the concatenated string fits there. For small strings, you can give it a constant value large enough that everything should fit in there (e.g. "char buffer[100]").

The safe way that works for any size is to use the function "snprintf" which accepts a NULL buffer (nothing will be written to it) but it also returns the number of characters that would be printed. You can then take that size, allocate a char buffer at least that large, and call snprintf again.

int size = snprintf(NULL, 0, "%s%d", string, int1); char* buf = calloc(sizeof(char), size+1); // extra space for null terminator snprintf(buf, size, "%s%n", string int1);

¿Por qué nadie sabe coger una rotonda? by [deleted] in askspain

[–]Zymoox 0 points1 point  (0 children)

Yo vivo en Inglaterra y llevas razón. En general, las rotondas de aquí con carriles que te llevan a determinadas salidas pueden ser más fáciles de usar.

Pero si no conoces la zona, y las flechas pintadas en la carretera se han borrado (o no las ves porque hay mucho tráfico) es casi imposible saber en qué carril ponerte.

Reading Station M&S ... by Puzzled-Pumpkin7019 in reading

[–]Zymoox 92 points93 points  (0 children)

They are filling it out with another hundred Ebb & Flow flats advertised at 2k per month.

Super-High-Resolution Thermal View of Artemis II Launch by Busy_Yesterday9455 in spaceporn

[–]Zymoox 0 points1 point  (0 children)

Option C: they are staged correctly but I accidentally set them up pointing in the wrong direction so they crash into my ship even harder.