I"m making a password to remove the file name and form from a path. However, i"m receiving warnings concerning the line where i change the content from a character. How can i get rid of the warning?

#include #include #include char *getPath(char *fullPath) char *aux; int a, b, c; aux = malloc(50 * sizeof(char)); aux = fullPath; a = strlen(aux); for(b=0; bquestion from:https://stackoverflow.com/questions/65912294/warning-assignment-makes-integer-from-pointer-without-a-cast-using-a-char-mal

*

*
answeredMar 6by 深蓝(31.9m points)
aux = ""; // right here "" is a char *aux is a char *, thus aux is a char (not a wire "")

aux = ""; As created in the comments, over there still have other mistakes in the rest of the code: for example aux value is erased.

You are watching: Assignment makes integer from pointer without a cast


I"m making a code to remove the paper name and kind from a path. However, i"m receiving warnings worrying the line where i adjust the contents ... /65912294/warning-assignment-makes-integer-from-pointer-without-a-cast-using-a-char-mal...
I"m making a password to eliminate the record name and type from a path. However, i"m receiving warnings concerning the line where i readjust the contents ... /65912294/warning-assignment-makes-integer-from-pointer-without-a-cast-using-a-char-mal...
arrays - Why walk the program display screen warning passing dispute 1 of "circularswap" makes guideline from integer there is no a cast?
I am functioning on this problem: Given variety p<5>, compose a function to shift it circularly left by two positions. Thus, if p<0> = 15 ... .com/questions/65880514/why-does-the-program-display-warning-passing-argument-1-of-circularswap-makes...
When i declare a char * to a fixed string and also reuse the tip to suggest to another string /* initial declaration */ char *src = "abcdefghijklmnop"; .. ... "; ns tried come recast the pointer yet no success. Watch Question&Answers more detail:os...
I don"t recognize what is difficulty here! after i compile it, constantly show me: "assignment makes reminder from integer there is no a ... ! percentString = ; check out Question&Answers more detail:os...
Coming from a Java background I"m finding out C, but I find those vague compiler error messages increasingly frustrating. Here"s mine code: /* * ... Cast return cString; deserve to someone define these warnings? check out Question&Answers an ext detail:os...
I"m having actually a trouble with the routine below. I"m trying come scan with a string command entered by the user for specific words. My major issue right now is ... Up! */ free(firstthree); return(0); } view Question&Answers more detail:os...
I am trying to run a an easy C program yet I am gaining this error: warning: format %s" expects type char *", however argument 2 has type char (*)<20>" running ... To fulfill you, %s! ", me); return (0); } check out Question&Answers more detail:os...
Okay, i am having a difficult time through this. I"ve tried to find the previous hour ~ above it and I don"t acquire what ns am act wrong. I"m do the efforts to take it the ... Used, yet I can"t find an example that works. Thanks! view Question&Answers much more detail:os...

See more: I Wont Go Hunting With You Jake Lyrics Chords, I Won'T Go Huntin' With You, Jake


I"m do the efforts to compare a 2D selection with a char but it keeps sending out me this error and pointing in ~ the array. If ((strcmp(matrixarray, ... .com/questions/65840970/passing-argument-1-of-strcmp-makes-pointer-from-integer-without-a-cast-c...
javascriptpythonjavac#Howandroidc++phpioshtmlsqlrcnode.js.netiphoneasp.netcssreactjsjqueryrubyWhatAndroidobjectivemysqllinuxIsgitPythonwindowsWhyregexangularswiftamazonexcelgooglealgorithmmacoshowJavavisualbashCantypescriptmultithreadingPHPUsingscalaangularjsapachespringperformancepostgresqldatabaseflutterjsonrustarraysC#vbadartdjangowpfxmlvue.jsIngoGetjQueryxcodejsfhttpGooglemongodbstringshellooppowershellSQLC++securityassemblydockerJavascriptAndroid:DoeshaskellwebConvertazuredebuggingdelphivb.netSpringdatetimepandasoraclemath