Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 197751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:52:47+00:00 2026-05-11T16:52:47+00:00

Bearing in mind the answers given to a question about a safer formatting library

  • 0

Bearing in mind the answers given to a question about a safer formatting library for C, I’m wondering whether there is a safe C formatting library?

What I mean is:

  • there’s no possibility to mismatch the format string from the arguments
  • there’s no possibility to crash by passing the wrong type
  • there’re no platform-dependent aspects

Please don’t answer about the Microsoft Safe String Library, or libraries that are less unsafe but still not totally safe, as I’m aware of these, and they don’t satisfy the requirements for total safety.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:52:47+00:00Added an answer on May 11, 2026 at 4:52 pm

    You’re writing in C. C is not type-safe. You cannot avoid undefined behaviour if you pass an int* instead of a char*. There’s no such thing as “there’s no possibility” if your variables are not statically type checked / tagged for runtime checking.

    If you have something that produces warnings, that’s quite good already…

    If you really need or want safety, you may want to have a look at cyclone (C dialect), or some completely different languages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way, bearing in mind the way the jQuery Mobile framework operates,
Ok so here is my question, Let's say you have a bearing of 80
In php, given a latitude and longitude point, a bearing (in degrees), and a
In a question I asked about ways to gather pixel data from an image
I started objective-c and iOS a couple of weeks ago (worth bearing in mind),
Bearing in mind the Async CTP promotes implicit scheduling via an ambient SynchronizationContext ,
Bearing in mind that I'll be performing calculations on lat / long pairs, what
Bearing in mind this is for classic asp Which is better, all HTML contained
Here's a noodle scratcher. Bearing in mind we have HTML5 local storage and xhr
i am using eclipse 3.5 to create a simple plugin bearing an extension point.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.