C/Przenośność programów: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
void
Linia 72:
#include <stdio.h>
int main(void) {
#if __BYTE_ORDER == __BIG_ENDIAN
printf("Porządek big-endian (4321)\n");
Linia 116:
#define H_TO_PDP(val) convert_order32((val), __BYTE_ORDER, 3412)
int main (void)
{
printf("%08x\n", LE_TO_H(0x01020304));
Linia 134:
#include <stdint.h>
int main(void) {
uint32_t val = 0x04030201;
unsigned char *v = (unsigned char *)&val;
int byte_order = *v[0] * 1000 + *(v[ + 1]) * 100 + *(v[ + 2]) * 10 + *(v[ + 3]);
if (byte_order == 4321) {
Linia 225:
#ifdef USE_WINDOWS
rob_cos_wersja_dla_windows(void);
#else
rob_cos_wersja_dla_linux(void);
#endif
</source>