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 525027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:37:45+00:00 2026-05-13T08:37:45+00:00

For practice I decided to rewrite string.c in C. I can not find online

  • 0

For practice I decided to rewrite string.c in C.
I can not find online (via google or other search engines) a test suite for either the entire standard or for specifically string.h

More specifically I am looking to see if my strcat(), strncat(), strchr(), strrchr(), strcmp(), strncmp(), strcpy(), strncpy(), strlen(), and strstr() functions conform to ISO/IEC 9899:1990 (“ISO C90”).

Can anyone recommend a good way to test these functions?

edit: the title and paragraph above used to say string.h – I meant string.c

  • 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-13T08:37:45+00:00Added an answer on May 13, 2026 at 8:37 am

    Compiler and library validation test suites are readily available. IIRC, Rogue Wave was in that business. But they cost money, companies that use them tend to have deep pockets.

    The GNU folks have them too, this looks like a good place to start. You’ll have to do some digging to isolate the string.h tests. But, don’t hesitate to write these tests yourself. It strikes me as a better way to learn what the string function should and should not do than reimplementing the functions.

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

Sidebar

Related Questions

Is it bad practice to have a custom cursor on a website? Not just
Is there a best practice on how to hash an arbitrary string into a
For practice, I'm trying to do some stuff in Python. I've decided to make
I found the discussion on Do you test private method informative. I have decided,
Hello fellow coders. So i decided to rewrite some of my old scripts i
I'm making a proof-of-concept game in Java and decided (for practice but mostly for
I have decided to follow best practice and only build my artifacts once and
I am writing a web server, mainly for practice, and decided to get to
I decided to pull information from Google's Weather API - The code I'm using
Is there a pattern or best practice in Rails whereby we can specify, in

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.