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

  • Home
  • SEARCH
  • 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 7924531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:48:20+00:00 2026-06-03T17:48:20+00:00

I have a string and I want its sub string from 5th location to

  • 0

I have a string and I want its sub string from 5th location to last location. Which function should I use?

  • 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-06-03T17:48:21+00:00Added an answer on June 3, 2026 at 5:48 pm

    You can use the memcpy() function which is in string.h header file.

    memcpy() copies bytes of data between memory blocks, sometimes called buffers. This function doesn’t care about the type of data being copied–it simply makes an exact byte-for-byte copy. The function prototype is

    void *memcpy(void *dest, void *src, size_t count);
    

    The arguments dest and src point to the destination and source memory blocks, respectively. count specifies the number of bytes to be copied. The return value is dest.

    If the two blocks of memory overlap, the function might not operate properly — some of the data in src might be overwritten before being copied. Use the memmove() function, discussed next, to handle overlapping memory blocks. memcpy() will be demonstrated in program below.

    You can also find an example for these function over here: http://www.java-samples.com/showtutorial.php?tutorialid=591

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

Sidebar

Related Questions

So I have a string SmartUserWantsToLive I want to generate from it or any
Using XSLT and XPath 1.0, I have a string I want to escape for
I have a string pc1|pc2|pc3| I want to get each word on different line
I have a HTML string and want to replace all links to just a
I have a string and I want to check if it represents a proper
I have a string that I want passed via the linebreaks filter. {% trans
I have a string that I want to have PHP read as a piece
I have string looking like this: 'Toy Story..(II) (1995)' I want to split the
I have this string: Test: String And I want to select the text before
goal: I have the string 1234432144 I want to only replace the first 2

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.