Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

uint32

How do I set a UInt32 to its maximum value

May 1, 2023 by Tarik

There’s a macro UINT32_MAX defined in stdint.h which you can use #include <stdint.h> uint32_t max = UINT32_MAX; More about the relevant header <stdint.h>: http://pubs.opengroup.org/onlinepubs/009695299/basedefs/stdint.h.html

Categories ios Tags ios, objective-c, uint32 Leave a comment

Swift convert UInt to Int

April 11, 2023 by Tarik

Int(arc4random_uniform(26)) does two things, one it eliminates the negative results from your current method and second should correctly creat an Int from the result.

Categories integer Tags integer, swift, uint32 Leave a comment

Difference between uint32 and uint32_t [duplicate]

January 21, 2023 by Tarik

uint32_t is standard, uint32 is not. That is, if you include <inttypes.h> or <stdint.h>, you will get a definition of uint32_t. uint32 is a typedef in some local code base, but you should not expect it to exist unless you define it yourself. And defining it yourself is a bad idea.

Categories c++ Tags c++, uint32, uint32-t Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa