본문 바로가기
반응형

프로그램...50

[C] 변환 Utils [C] 변환 Utils String -> Integer >x32 xAtoI(xc8* pStr){#defineXATOI_MAX_LEN10/* U : 4294967295 *//* I : 2147483647 */x32len;x32val;if(! pStr) return 0; len = 0;val = 0;while(*pStr) {if(XIS_DIGIT(*pStr)) {if(len++ > XATOI_MAX_LEN) { /* Exceed */ return 0; }val = val * 10 + *pStr - '0';}pStr++;}return val;} HexDump data >void xHexDump(xu8* data, xu32 dLen){xu32cnt = 1; #defineMAX_UHEX_DUMP_LEN4096 #.. 2019. 2. 27.
[CSS] Layer 참고> 당신이 모를 수 있는 7가지 about CSS (https://webdesign.tutsplus.com/ko/articles/7-css-units-you-might-not-know-about--cms-22573)주의> inline-block : 간격 문제가 발생함 -> float으로 변경주의> float- 더 이상 width == 100% 이 아니다.- 부모테그가 자식테그를 인식하지 못함. (Float이므로) => height == 0 이됨overflow: auto or hidden 명시해 주어야 부모테그가 정상적으로 인식함. float 제거 역할 : clear: left;clear: right;clear: both; https://www.zerocho.com/category/CSS/post/58.. 2019. 2. 26.
[PHP] 유용한 Utils [PHP] 유용한 Utils String 관련 Utils>[strrstr]function strrstr($h, $n, $before = false) { $rpos = strrpos($h, $n); if($rpos === false) return false; if($before == false) return substr($h, $rpos); else return substr($h, 0, $rpos); } 2019. 2. 26.
[JS] target to IFRAME [JS] target to IFRAMEForm의 Target을 IFRAME영역으로 할당하는 방법 [참고]Redirect>if ( window.location == 'http://www.abc.com/' ) {window.location.href='http://www.codingfactory.net/';}아래 예제는 WEB인증 처리시 WEB Redirect 요청에 대한 처리중 각 단말의 OS WEB Redirect 처리일 경우 일반 WBE Redirect와 다르게 처리하는 방법을 구현한 예이다. Case 구별> OS 요청시 target을 hidden iframe으로 변경함.> saved_url = obj_url.value; obj_url.value = ''; cfm_form.target = 'hidden-.. 2019. 2. 26.
반응형