Jump to content

fscanf


ville
 Share

Recommended Posts

Preciso de copiar de uma string todas as ocorrencias de um caracter a outro.

neste caso, entre  M e -

supondo, que temos a string teste

KFDFADMADOKSADOSA-SADSADAS

deveria ficar com o MADOKSADOSA-

será possivel usar o fscanf para ler esta porçao da sequencia? algo do genero

fscanf(teste,"(parametros para ler de M a -)",substring) ?

Ou há melhor maneira de fazer isto?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.