28240bc5f0c103b9bf8e90637e6c5464bca55dc7 hiram Mon Mar 2 13:14:45 2020 -0800 correct one line header message in usage() refs #25071 diff --git src/utils/sizeof/sizeof.c src/utils/sizeof/sizeof.c index f44cff5..c000352 100644 --- src/utils/sizeof/sizeof.c +++ src/utils/sizeof/sizeof.c @@ -1,29 +1,31 @@ /* * sizeof - show size of various C types for reference * $Id: sizeof.c,v 1.3 2005/12/02 19:21:42 hiram Exp $ */ /* Copyright (C) 2011 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include <stdio.h> int main() { unsigned int byteOrder = 0x12345678; unsigned char *cp = (unsigned char *) &byteOrder; +printf("sizeof - show size of various C types for reference\n\n"); + printf(" type bytes bits\n"); printf(" char\t%d\t%d\n", (int)sizeof(char), 8*(int)sizeof(char)); printf("unsigned char\t%d\t%d\n", (int)sizeof(unsigned char), 8*(int)sizeof(unsigned char)); printf("short int\t%d\t%d\n", (int)sizeof(short int), 8*(int)sizeof(short int)); printf("u short int\t%d\t%d\n", (int)sizeof(unsigned short int), 8*(int)sizeof(unsigned short int)); printf(" int\t%d\t%d\n", (int)sizeof(int), 8*(int)sizeof(int)); printf(" unsigned\t%d\t%d\n", (int)sizeof(unsigned), 8*(int)sizeof(unsigned)); printf(" long\t%d\t%d\n", (int)sizeof(long), 8*(int)sizeof(long)); printf("unsigned long\t%d\t%d\n", (int)sizeof(unsigned long), 8*(int)sizeof(unsigned long)); printf("long long\t%d\t%d\n", (int)sizeof(long long), 8*(int)sizeof(long long)); printf("u long long\t%d\t%d\n", (int)sizeof(unsigned long long), 8*(int)sizeof(unsigned long long));