Hello ,
I'm new here and new to c/c++ programming.
Can you guide me how to extract user from path like : /home/user/public_html

Please help me , thanks a lot

Recommended Answers

All 5 Replies

It really depends on your extraction criteria but I would start investigating functions like strtok().

Thanks For your replay
but i do not know any thing in c
can you write the code please.

Thanks For your replay
but i do not know any thing in c
can you write the code please.

No, absolutely not.

anybody can help me please

okay before we give more help what have you researched so far did you try to google search about the topic?

but i do not know any thing in c
can you write the code please.

Sorry but no ones gonna serve you code here without doing your part
forum rule:
Keep It Organized:
Do provide evidence of having done some work yourself if posting questions from school or work assignments

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.