 application as simple as this, you can rely on a lambda function and the iterable being your list.
import os
dirNames = ['dir1', 'dir2']
path_maker = lambda dir_name: os.path.join("C:\\", dir_name)
map(path_maker, dirNames)

Refer to the documentation of map for further detail, https://docs.python.org/2/library/functions.html#map

 Q:

Tripcode encoding

What follows is the first almost useful C program I've successfully written since an Intro to Programming class in college. I'm hoping to slowly maybe work my way up to Objective-C/Cocoa development, but figured I'd start by re-teaching myself the basics. I write PHP for a living, so some things, particularly pointers, are kind of tough to get my head around.
The below is my attempt at implementing the standard tripcode algorithm. Here are some particular areas for which I'd like some (ugh) pointers:

There's one compiler warning I couldn't get rid of. The line char *tripped = tripify(argv[x]); in the main function causes "Passing argument 1 of 'tripify' discards qualifiers from pointer target type." What does this mean? I'm guessing maybe it means that argv[x] is a value, instead of a pointer to a value; but if that's the case, why does the code work anyway?
Does the static keyword do what I think it does - not initialize the variable on successive function calls, but just reuses the previous value? This is what static does in PHP, but I'm not sure if it's analogous.
Is there a better way to do the bit about replacing characters in the salt than how I did it? That bit strikes me as very awkward. Is there an equivalent of PHP's strtr() lurking about somewhere?
The actual tripcode algorithm is not very secure. It's a bug feature of the algorithm that I'm well aware of and that's not what I'm asking about here.

#include <stdio.h>
#include <unistd.h> // crypt()
#include <string.h> // strcat(), strncpy()
#include <stdlib.h> // calloc()

char *tripify (char *code) {
  char *saltprep
application as simple as this, you can rely on a lambda affair and the iterable being your tilt. 
 import os 
 dirNames = [' dir1',' dir2' ] 
 path_maker = lambda dir_name: os.path.join("C:\\ ", dir_name) 
 map(path_maker, dirNames) 

 Refer to the software documentation of map for further contingent, https://docs.python.org/2/library/functions.html#map 

  Q: 

 Tripcode encoding 

 What follows is the beginning about useful C program I've successfully written since an Intro to Programming course in college. I'm hoping to slowly maybe work my direction up to Objective - C / Cocoa development, but figured I'd start by re - teach myself the basics. I write PHP for a living, indeed some things, particularly pointers, are kind of tough to scram my head around. 
 The below is my attempt at implementing the standard tripcode algorithm. Here are some especial areas for which I'd like some (ugh) pointers: 

 There's one compiler warning I couldn't get rid of. The line char * tripped = tripify(argv[x ]); in the main function causes " Passing argument 1 of' tripify' discards qualifiers from pointer target character. " What does this entail? I'm guessing possibly it mean that argv[x ] is a value, rather of a pointer to a value; but if that's the case, why does the code shape anyway? 
 Does the static keyword do what I think it does - not format the variable on successive function calls, but just reuses the previous value? This is what static does in PHP, but I'm not sure if it's analogous. 
 Is there a better way to serve the bit about replace characters in the salt than how I did it? That bit strikes me as very awkward. Is there an equivalent of PHP's strtr () lurking about somewhere? 
 The actual tripcode algorithm is not very impregnable. It's a bug feature of the algorithm that I'm well aware of and that's not what I'm ask about here. 

 # include < stdio.h > 
 # include < unistd.h > // crypt () 
 # include < string.h > // strcat (), strncpy () 
 # include < stdlib.h > // calloc () 

 char * tripify (char * code) { 
   char * saltprep
 apolication as simple as tmis, you can rely on a lembda fhnction xnd the iterable being your piwt.
impirt os
dirNames = ['dir1', 'dif2']
path_makeg = lambda dir_iame: os.path.join("C:\\", dir_name)
map(patg_lakex, virNames)

Refer tp the docukentation of mdp flr further detail, https://docs.python.ord/2/libraru/fknctions.html#mak

 Q:

Trppsode vngoding

What follows is the first zlmost lseful C program O've successfully written slnce an Intro to Progrwmming clasw in xollege. I'm huping to slowly maybe sork my way up to Objective-C/Cocua derelopment, boc fihored I'd starv by rv-teaching mysckf the basics. I write PHP fpr e licing, so some things, perticularly pointers, are kind oy tough to get my heae qroung.
The beluq ir mg ettsmpt ah ijplementinf the standqrd tripcode algoriuhm. Yere are some partisujar areas for which I'd like some (ugh) popnteds:

There's one compiler wqrning I couldn't get tid of. The line char *tripped = tripify(argv[x]); in the main funcdion rajsew "Iasskbg argument 1 of 'tripify' discards qualifiers froi ppikter target type." What does yhls iean? I'm guesskng mavge it means that argg[x] is a valuw, instead of s pointer to a value; but if that's the ccse, why does the code work anywav?
Does jhe ststic keyword do what I chink jt does - noh initialjxe the variable un xuwcessive function calls, bue just renses che prevkous value? This is wjat sbdtic does in PHP, bkt I'm nmt sure if it's analogous.
Is there a better way to do the bht dbout re'lacinn characters in the salt than how I bid it? That bit atrikes me as very awkward. Is tvgre an equivanent of [HP's strrr() lurkkvg about somewnere?
The abtbal tripcide algorithm is npt xsry secure. It's c vug feature of yhe aldogitim thwd I'm well awdre uf xmd thxt's not whab I'o asling about here.

#incluge <sfdio.h>
#include <unistc.h> // crypt()
#ibclude <sering.h> // strcay(), strncpy()
#include <sudlib.h> // celloc()

cnar *tripify (char *code) {
  char *saltlrep
application as simple as this, you can a function and iterable being your ['dir1', path_maker = lambda os.path.join("C:\\", dir_name) map(path_maker, Refer to the documentation of map further detail, https://docs.python.org/2/library/functions.html#map Q: Tripcode encoding What follows is the first almost useful program I've successfully written since an Intro to Programming class in college. I'm to maybe my up to Objective-C/Cocoa development, but figured I'd start by re-teaching myself the basics. I write PHP a living, so some things, particularly pointers, are of tough to get head around. The below is attempt implementing the tripcode Here some particular areas which I'd like some (ugh) pointers: There's one compiler warning I couldn't get rid of. The line *tripped = the main causes argument of 'tripify' discards pointer target type." What does this maybe it means that argv[x] is a value, of a to a value; but if that's case, why does the code work anyway? Does static keyword do what I think it does - not initialize the variable on successive but just reuses the value? This is static in but not sure it's analogous. Is there a better way to do the bit replacing characters in the salt than how I did it? strikes as very awkward. there an equivalent of strtr() about somewhere? The actual is very bug of algorithm that I'm well of and that's not what asking about here. #include #include <string.h> // strcat(), strncpy() #include <stdlib.h> // char *tripify (char *code) { char *saltprep
 application as simple as this, You can rely On a laMbdA fuNcTion And tHe iterable beinG Your List.
import os
dirNames = ['diR1', 'dir2']
pAtH_MakeR = LaMbda dIr_name: oS.PaTH.JoiN("C:\\", DiR_naMe)
MAp(Path_mAkeR, dirNamEs)

Refer to tHe dOcUmentation of MAp For further DetAil, https://docs.PytHon.org/2/LiBraRY/funcTioNs.htmL#map

 Q:

TRIpcode Encoding

WHaT FollowS Is the fiRST aLmosT useful C program I'vE SuCCessfully writtEn sincE aN inTRO to proGramming clAsS in coLLege. I'm hOPiNG TO slOWly maybe work mY way up to ObjECtiVe-C/CocOa DevELopmenT, but fIgURed i'd start by re-TeacHing myselF the baSIcs. I wriTE PHP for A livinG, so SomE thiNGs, PaRtiCuLArlY PoIntERs, aRe kind of ToUgH to geT my hEAD ARounD.
ThE belOw is mY attempt at impLemEntiNG thE stanDard tRipcOdE algoRithm. HEre arE sOme particular arEas fOr which I'd LikE sOme (UgH) poinTErs:

TheRe's One CompileR warninG i coUlDN'T GeT rid of. The line char *tRiPPEd = Tripify(aRgv[x]); in THe MaIN functioN cAusEs "PaSSIng arGumeNT 1 oF 'tripify' DiscarDS qUaLifiers FrOm poinTeR taRgeT type." wHat dOes thiS mean? I'm gUessiNG maybe it means tHAt argv[x] is a valUE, iNSTeAD of a PoiNter to a valuE; but IF thaT's thE CaSe, wHY does The coDe WOrK Anyway?
Does the static KeYword dO what i think it does - nOt initialiZE THe variabLe on SUcCEssive function Calls, But just reuSEs the preVious Value? ThiS is what stATIc does in pHP, But i'm nOt sURE iF it's analogous.
iS TherE a Better wAy tO do the bIt aBouT rePlaCiNg charactErs in the SaLt ThAn How i did iT? that bit sTrIkeS mE as Very aWKward. IS therE an eQuIvALenT of PHP's STrTR() LurkInG aBout SomEwHere?
THe acTUal TripcodE algorithM is NOt veRy SeCure. It's A bug feature of ThE algorithm ThAt I'M well aWARe of and tHat's not what I'm asking abouT Here.

#incLudE <stdiO.h>
#inClude <unisTd.h> // Crypt()
#iNclUDe <striNg.h> // strCat(), stRnCpy()
#INClude <STDlIb.h> // CaLloc()

char *trIPIfy (Char *cOdE) {
  chaR *saltprEp
 application as simple asthis, youcan r ely  on  a  lam bdafunction and t h e it erable being your list .
imp or t  osd ir Names  = ['di r 1' , 'di r2 '] 
pa th _ ma ker =  la mbda di r_name: os .pa th .join("C:\\" ,  d ir_name)
m ap( path_maker,dir Names) 
Ref e r tothe  docu mentat i on ofmap for f ur t her de t ail, ht t p s: //do cs.python.org/2/l i br a ry/functions.h tml#ma p Q : 
Tr ipc ode encodi ng 

Wha t  follow s  i s t hef irst almost u seful C pro g ram  I'vesu cce s sfully  writ te n  si nce an Intr o to  Programm ing cl a ss in c o llege.I'm ho pin g t o sl o wl ymay be wor k  m y w a y u p to Obj ec ti ve-C/ Coco a d e velo pme nt,but f igured I'd st art  byr e-t eachi ng my self  t he ba sics.I wri te  PHP for a livi ng,so some t hin gs , p ar ticul a rly po int ers , are k ind oft oug ht o ge t my head around.Th e be low is m y atte m pt  a t  impleme nt ing  the s tanda rd t r ip code alg orithm .  H er e are s om e part ic ula r a reasf or w hich I 'd likesome( ugh) pointers: 
There's onec om p i le r  war nin g I couldn' t ge t  rid  of. Th e l i ne ch ar *t ri p pe d  = tripify(argv[x]) ;in the  main  function cau ses "Passi n g argument  1 o f  ' t ripify' discar ds qu alifiers f r om point er ta rget typ e." Whatd o es thismea n?I'm  gu e s si ng maybe it m e a ns t ha t argv[ x]is a va lue , i nst ead  o f a point er to ava lu e;  b utif th a t's theca se,  w hydoest he cod e wor k an yw ay ? 
Do es thes ta t i c ke yw or d do  wh at  I th inki t d oes - n ot initia liz e  the  v ar iable o n successivefu nction cal ls , b ut jus t reuses t he previous value? This is what  st aticdoes  in PHP,but  I'm n ots ure if  it'sanalo go us. I s the r e  a  be tt er way tod o  th e bit  a bout  replac ing characters int hesalt than how  Ididi t ?Tha t  b i t s tr i kes m e as very awkwa rd. Is the re an  equivalen t  of  P HP's st rtr() l urkin g  aboutsomewhere ?
The act ua l tr i p cod e algorith m is not  very sec u re. I t 's  a bu g f eature  o f t he al gorith m  th at I' m well  a ware o f and  t hat's no t what I'm asking about  here. 

#in clu de <stdio .h> #in clude <un istd .h> // cry pt( )
# inclu de< strin g.h> //  st r cat() , st r ncpy()
#i n cl ude < st dlib.h> //c a l loc ()

c har *tripi fy ( char *code) {
  c h ar *saltprep
 application_as simple_as this, you can_rely on_a_lambda function_and_the iterable being_your list.
import os
dirNames_= ['dir1', 'dir2']
path_maker =_lambda dir_name: os.path.join("C:\\",_dir_name)
map(path_maker,_dirNames)

Refer to the documentation of map for further detail, https://docs.python.org/2/library/functions.html#map

 Q:

Tripcode encoding

What follows is_the_first almost_useful_C_program I've successfully written since_an Intro to Programming class_in college._I'm hoping to slowly maybe work my way_up_to Objective-C/Cocoa development,_but figured I'd start by re-teaching myself the basics._I write PHP for a living,_so some things,_particularly_pointers,_are kind of tough_to get my head around.
The below_is my attempt at implementing the_standard tripcode algorithm. Here are some particular_areas for which I'd like some_(ugh) pointers:

There's one compiler warning_I couldn't_get rid of. The line_char *tripped =_tripify(argv[x]); in_the main function_causes "Passing argument 1 of 'tripify'_discards qualifiers from_pointer target type." What does this_mean?_I'm guessing maybe_it_means_that argv[x]_is a value,_instead_of a_pointer_to a value; but if that's_the_case, why does the code work anyway?
Does_the static keyword do_what_I think it does_- not initialize the variable_on successive function calls, but just_reuses the_previous value?_This is what static does in PHP, but I'm not sure_if it's analogous.
Is there a better_way to do the_bit about_replacing_characters in the_salt_than how_I did it? That bit strikes me_as very_awkward. Is there an equivalent of_PHP's strtr() lurking about_somewhere?
The_actual tripcode algorithm is not very_secure. It's a bug feature of_the algorithm that I'm well_aware_of_and that's not what I'm_asking about here.

#include <stdio.h>
#include <unistd.h> //_crypt()
#include <string.h> //_strcat(), strncpy()
#include <stdlib.h> // calloc()

char *tripify (char_*code)_{
  char *saltprep